Index: src/image/SkSurface_Gpu.cpp |
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp |
index 1e4bd87661a1a0ec10562ec8f86e6fc216b51dfd..5b4bfafb16fe683b27374ab099f09828406fd584 100644 |
--- a/src/image/SkSurface_Gpu.cpp |
+++ b/src/image/SkSurface_Gpu.cpp |
@@ -115,7 +115,7 @@ void SkSurface_Gpu::onCopyOnWrite(ContentChangeMode mode) { |
sk_sp<SkImage> image(this->refCachedImage(SkBudgeted::kNo, kNo_ForceUnique)); |
SkASSERT(image); |
if (rt->asTexture() == as_IB(image)->peekTexture()) { |
- this->fDevice->replaceRenderTarget(SkSurface::kRetain_ContentChangeMode == mode); |
+ this->fDevice->replaceDrawContext(SkSurface::kRetain_ContentChangeMode == mode); |
SkTextureImageApplyBudgetedDecision(image.get()); |
} else if (kDiscard_ContentChangeMode == mode) { |
this->SkSurface_Gpu::onDiscard(); |
@@ -123,7 +123,7 @@ void SkSurface_Gpu::onCopyOnWrite(ContentChangeMode mode) { |
} |
void SkSurface_Gpu::onDiscard() { |
- fDevice->accessRenderTarget()->discard(); |
+ fDevice->accessDrawContext()->discard(); |
} |
void SkSurface_Gpu::onPrepareForExternalIO() { |