Index: src/image/SkSurface_Gpu.cpp |
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp |
index 024c151cea9fb73a146f5269d96c66e300827e3c..fb087ea24bb26efe542d135a2a9e497afd74fa59 100644 |
--- a/src/image/SkSurface_Gpu.cpp |
+++ b/src/image/SkSurface_Gpu.cpp |
@@ -89,7 +89,7 @@ void SkSurface_Gpu::onCopyOnWrite(ContentChangeMode mode) { |
fDevice->createCompatibleDevice(fDevice->imageInfo())); |
SkAutoTUnref<SkGpuDevice> aurd(newDevice); |
if (kRetain_ContentChangeMode == mode) { |
- fDevice->context()->copyTexture(rt->asTexture(), newDevice->accessRenderTarget()); |
+ fDevice->context()->copySurface(newDevice->accessRenderTarget(), rt->asTexture()); |
} |
SkASSERT(this->getCachedCanvas()); |
SkASSERT(this->getCachedCanvas()->getDevice() == fDevice); |