Index: src/image/SkSurface_Gpu.cpp |
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp |
index cf0f0788d2f84de3cebc6bb87f3e5d877094a2aa..f44bbfede062ff3c1ebd402386efbd0437be91bc 100644 |
--- a/src/image/SkSurface_Gpu.cpp |
+++ b/src/image/SkSurface_Gpu.cpp |
@@ -69,7 +69,7 @@ void SkSurface_Gpu::onCopyOnWrite(ContentChangeMode mode) { |
// image because onCopyOnWrite is only called when there is a cached image. |
SkImage* image = this->getCachedImage(kNo_Budgeted); |
SkASSERT(image); |
- if (rt->asTexture() == image->getTexture()) { |
+ if (rt->asTexture() == as_IB(image)->getTexture()) { |
this->fDevice->replaceRenderTarget(SkSurface::kRetain_ContentChangeMode == mode); |
SkTextureImageApplyBudgetedDecision(image); |
} else if (kDiscard_ContentChangeMode == mode) { |