aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/lazy/SkCachingPixelRef.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lazy/SkCachingPixelRef.h')
-rw-r--r--src/lazy/SkCachingPixelRef.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lazy/SkCachingPixelRef.h b/src/lazy/SkCachingPixelRef.h
index 9fc71c3616..193fe45482 100644
--- a/src/lazy/SkCachingPixelRef.h
+++ b/src/lazy/SkCachingPixelRef.h
@@ -48,12 +48,15 @@ protected:
virtual SkData* onRefEncodedData() SK_OVERRIDE {
return fImageGenerator->refEncodedData();
}
+
+#ifdef SK_SUPPORT_LEGACY_PIXELREF_UNFLATTENABLE
// No need to flatten this object. When flattening an SkBitmap,
// SkWriteBuffer will check the encoded data and write that
// instead.
// Future implementations of SkWriteBuffer will need to
// special case for onRefEncodedData as well.
SK_DECLARE_UNFLATTENABLE_OBJECT()
+#endif
private:
SkImageGenerator* const fImageGenerator;