Index: src/image/SkSurface_Gpu.cpp |
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp |
index d46d8bc74b0fe748432c8d7249e1f9c6a1ce8327..746bb066534699ce7639e7a47a90208af63a00ce 100644 |
--- a/src/image/SkSurface_Gpu.cpp |
+++ b/src/image/SkSurface_Gpu.cpp |
@@ -83,7 +83,7 @@ void SkSurface_Gpu::onCopyOnWrite(ContentChangeMode mode) { |
} |
SkASSERT(NULL != this->getCachedCanvas()); |
SkASSERT(this->getCachedCanvas()->getDevice() == fDevice); |
- this->getCachedCanvas()->setDevice(newDevice); |
+ this->getCachedCanvas()->setRootDevice(newDevice); |
SkRefCnt_SafeAssign(fDevice, newDevice.get()); |
} |
} |