Index: src/core/SkScaledImageCache.cpp |
diff --git a/src/core/SkScaledImageCache.cpp b/src/core/SkScaledImageCache.cpp |
index a030248197a391787c62e0b46f96fb9f199202a2..eda4871711157cc2d64478867b774868fe7fb58d 100644 |
--- a/src/core/SkScaledImageCache.cpp |
+++ b/src/core/SkScaledImageCache.cpp |
@@ -183,7 +183,9 @@ public: |
SkOneShotDiscardablePixelRef(const SkImageInfo&, SkDiscardableMemory*, size_t rowBytes); |
~SkOneShotDiscardablePixelRef(); |
+#ifdef SK_SUPPORT_LEGACY_PIXELREF_UNFLATTENABLE |
SK_DECLARE_UNFLATTENABLE_OBJECT() |
+#endif |
protected: |
virtual bool onNewLockPixels(LockRec*) SK_OVERRIDE; |