Index: include/gpu/SkGrPixelRef.h |
diff --git a/include/gpu/SkGrPixelRef.h b/include/gpu/SkGrPixelRef.h |
index 36802a05589e236c8c5984cf21dc1ad8381bf441..5599fb79c9ee42099170f0098f058ac9f845edd7 100644 |
--- a/include/gpu/SkGrPixelRef.h |
+++ b/include/gpu/SkGrPixelRef.h |
@@ -51,7 +51,9 @@ public: |
// override from SkPixelRef |
virtual GrTexture* getTexture() SK_OVERRIDE; |
+#ifdef SK_SUPPORT_LEGACY_PIXELREF_UNFLATTENABLE |
SK_DECLARE_UNFLATTENABLE_OBJECT() |
+#endif |
protected: |
// overrides from SkPixelRef |