Index: include/effects/SkLayerDrawLooper.h |
diff --git a/include/effects/SkLayerDrawLooper.h b/include/effects/SkLayerDrawLooper.h |
index ac56e288dc6edbb3f3633b7e7dd0316c6c0cd9b0..5bb8b6646b07435e9ac4f2c5cc3f6ffc0b75219e 100644 |
--- a/include/effects/SkLayerDrawLooper.h |
+++ b/include/effects/SkLayerDrawLooper.h |
@@ -81,8 +81,14 @@ public: |
SK_TO_STRING_OVERRIDE() |
- /// Implements Flattenable. |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+ static SkFlattenable* DeepCreateProc(SkReadBuffer& buffer) { |
+ return CreateProc(buffer); |
+ } |
+ virtual Factory getFactory() const SK_OVERRIDE { return DeepCreateProc; } |
+#else |
virtual Factory getFactory() const SK_OVERRIDE { return CreateProc; } |
+#endif |
static SkFlattenable* CreateProc(SkReadBuffer& buffer); |
protected: |