Index: include/effects/SkLayerDrawLooper.h |
diff --git a/include/effects/SkLayerDrawLooper.h b/include/effects/SkLayerDrawLooper.h |
index d21e39976217ae1040c4c0b22edf107413231bb2..5bb8b6646b07435e9ac4f2c5cc3f6ffc0b75219e 100644 |
--- a/include/effects/SkLayerDrawLooper.h |
+++ b/include/effects/SkLayerDrawLooper.h |
@@ -81,7 +81,14 @@ |
SK_TO_STRING_OVERRIDE() |
+#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: |