Index: gm/imagefiltersgraph.cpp |
diff --git a/gm/imagefiltersgraph.cpp b/gm/imagefiltersgraph.cpp |
index 8af268e5681a9777e77fc6cf1a4f5803b07bf80c..8469a43b59e824d52d02d29a377c9edb59ed3149 100644 |
--- a/gm/imagefiltersgraph.cpp |
+++ b/gm/imagefiltersgraph.cpp |
@@ -29,11 +29,7 @@ public: |
public: |
Registrar() { |
SkFlattenable::Register("SimpleOffsetFilter", |
-#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
- SimpleOffsetFilter::DeepCreateProc, |
-#else |
SimpleOffsetFilter::CreateProc, |
-#endif |
SimpleOffsetFilter::GetFlattenableType()); |
} |
}; |
@@ -69,14 +65,6 @@ public: |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SimpleOffsetFilter); |
protected: |
-#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
- explicit SimpleOffsetFilter(SkReadBuffer& buffer) |
- : SkImageFilter(1, buffer) { |
- fDX = buffer.readScalar(); |
- fDY = buffer.readScalar(); |
- } |
-#endif |
- |
virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE { |
this->INHERITED::flatten(buffer); |
buffer.writeScalar(fDX); |