From 0e56e237e39296129eb7ff0acdd23ba310d73387 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Thu, 10 Dec 2020 15:36:02 -0500 Subject: [PATCH] Restore GrRenderTargetContext as an alias for GrSurfaceDrawContext Android framework is relying on the old header and old name. Change-Id: I64065027bb7e96e47bc38b9df973383e236161ab Reviewed-on: https://skia-review.googlesource.com/c/skia/+/343103 Reviewed-by: Greg Daniel Reviewed-by: Stan Iliev Commit-Queue: Stan Iliev --- src/gpu/GrRenderTargetContext.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/gpu/GrRenderTargetContext.h diff --git a/src/gpu/GrRenderTargetContext.h b/src/gpu/GrRenderTargetContext.h new file mode 100644 index 0000000000..8e93d5a818 --- /dev/null +++ b/src/gpu/GrRenderTargetContext.h @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef GrRenderTargetContext_DEFINED +#define GrRenderTargetContext_DEFINED + +#include "include/core/SkTypes.h" + +#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK + +#include "src/gpu/GrSurfaceDrawContext.h" + +// Android Framework is relying on this header existing and the old name +// of GrSurfaceDrawContext. + +using GrRenderTargetContext = GrSurfaceDrawContext; + +#endif + +#endif