Replace replaceSurfaceDrawContext with replaceBackingProxy
Change-Id: Iba2641f71bdc541d1a55a22c022031949c326c27
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/414444
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
diff --git a/src/gpu/SkBaseGpuDevice.h b/src/gpu/SkBaseGpuDevice.h
index f4ef10c..50dc66a 100644
--- a/src/gpu/SkBaseGpuDevice.h
+++ b/src/gpu/SkBaseGpuDevice.h
@@ -53,6 +53,14 @@
const GrBackendSemaphore* waitSemaphores,
bool deleteSemaphoresAfterWait) = 0;
+ virtual bool replaceBackingProxy(SkSurface::ContentChangeMode,
+ sk_sp<GrRenderTargetProxy>,
+ GrColorType,
+ sk_sp<SkColorSpace>,
+ GrSurfaceOrigin,
+ const SkSurfaceProps&) = 0;
+ bool replaceBackingProxy(SkSurface::ContentChangeMode);
+
protected:
sk_sp<GrRecordingContext> fContext;