Index: src/lazy/SkDiscardablePixelRef.h |
diff --git a/src/lazy/SkDiscardablePixelRef.h b/src/lazy/SkDiscardablePixelRef.h |
index 52a1d6ce3708d1df1db1bccf5bff93daa223bb43..ae955d6eba1b0a4acba7bec6f54b72a7011c63fd 100644 |
--- a/src/lazy/SkDiscardablePixelRef.h |
+++ b/src/lazy/SkDiscardablePixelRef.h |
@@ -21,7 +21,9 @@ |
class SkDiscardablePixelRef : public SkPixelRef { |
public: |
SK_DECLARE_INST_COUNT(SkDiscardablePixelRef) |
+#ifdef SK_SUPPORT_LEGACY_PIXELREF_UNFLATTENABLE |
SK_DECLARE_UNFLATTENABLE_OBJECT() |
+#endif |
protected: |
~SkDiscardablePixelRef(); |