From 3f3b3d003527861dc0bd89733857576408906431 Mon Sep 17 00:00:00 2001 From: mtklein Date: Mon, 1 Dec 2014 11:47:08 -0800 Subject: Remove SK_SUPPORT_LEGACY_DEEPFLATTENING. This was needed for pictures before v33, and we're now requiring v35+. Will follow up with the same for skia/ext/pixel_ref_utils_unittest.cc BUG=skia: Committed: https://skia.googlesource.com/skia/+/52c293547b973f7fb5de3c83f5062b07d759ab88 Review URL: https://codereview.chromium.org/769953002 --- gm/imagefiltersgraph.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'gm/imagefiltersgraph.cpp') diff --git a/gm/imagefiltersgraph.cpp b/gm/imagefiltersgraph.cpp index 8af268e568..8469a43b59 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); -- cgit v1.2.3