Index: gm/imagefiltersbase.cpp |
diff --git a/gm/imagefiltersbase.cpp b/gm/imagefiltersbase.cpp |
index 749334a61ea28154aa86e27be25895252fb244c7..4546b8add2486a5e17545d0f05be05b9bbd74b60 100644 |
--- a/gm/imagefiltersbase.cpp |
+++ b/gm/imagefiltersbase.cpp |
@@ -22,7 +22,11 @@ |
public: |
Registrar() { |
SkFlattenable::Register("FailImageFilter", |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+ FailImageFilter::DeepCreateProc, |
+#else |
FailImageFilter::CreateProc, |
+#endif |
FailImageFilter::GetFlattenableType()); |
} |
}; |
@@ -39,6 +43,10 @@ |
SkBitmap* result, SkIPoint* offset) const SK_OVERRIDE { |
return false; |
} |
+ |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+ FailImageFilter(SkReadBuffer& buffer) : INHERITED(0, buffer) {} |
+#endif |
private: |
typedef SkImageFilter INHERITED; |
@@ -57,7 +65,11 @@ |
public: |
Registrar() { |
SkFlattenable::Register("IdentityImageFilter", |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+ IdentityImageFilter::DeepCreateProc, |
+#else |
IdentityImageFilter::CreateProc, |
+#endif |
IdentityImageFilter::GetFlattenableType()); |
} |
}; |
@@ -75,6 +87,10 @@ |
offset->set(0, 0); |
return true; |
} |
+ |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+ IdentityImageFilter(SkReadBuffer& buffer) : INHERITED(1, buffer) {} |
+#endif |
private: |
typedef SkImageFilter INHERITED; |