Index: src/image/SkSurface.cpp |
=================================================================== |
--- src/image/SkSurface.cpp (revision 10200) |
+++ src/image/SkSurface.cpp (working copy) |
@@ -50,7 +50,7 @@ |
// the surface may need to fork its backend, if its sharing it with |
// the cached image. Note: we only call if there is an outstanding owner |
// on the image (besides us). |
- if (fCachedImage->getRefCnt() > 1) { |
+ if (!fCachedImage->unique()) { |
this->onCopyOnWrite(mode); |
} |