diff options
author | 2018-04-05 13:09:58 -0400 | |
---|---|---|
committer | 2018-04-05 23:52:23 +0000 | |
commit | 99885411aef986f3de863e144a589adb6d7ecd0d (patch) | |
tree | 2c9b2fef53e2b4124b1ec89e4be8fa24c1f899c8 /tests/ImageFilterTest.cpp | |
parent | 5ddb30862509967eca24ba3831cc11ed5396eee7 (diff) |
remove SK_IGNORE_TO_STRING
SK_IGNORE_TO_STRING is not defined anywhere.
The same effect can be had by using a modern
linker.
Removing it simplifies bookmaker and makes
our includes easier to understand.
R=robertphillips@google.com
TBR=reed@google.com
Bug: skia:6898
Change-Id: Ib716f5ef1b42a7fbda0df43ece212d1b7c40289f
Reviewed-on: https://skia-review.googlesource.com/118963
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Cary Clark <caryclark@skia.org>
Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'tests/ImageFilterTest.cpp')
-rw-r--r-- | tests/ImageFilterTest.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp index 1d9b585128..0aad960e7b 100644 --- a/tests/ImageFilterTest.cpp +++ b/tests/ImageFilterTest.cpp @@ -57,7 +57,7 @@ public: return sk_sp<SkImageFilter>(new MatrixTestImageFilter(reporter, expectedMatrix)); } - SK_TO_STRING_OVERRIDE() + void toString(SkString* str) const override; SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(MatrixTestImageFilter) protected: @@ -101,7 +101,7 @@ public: return nullptr; } - SK_TO_STRING_OVERRIDE() + void toString(SkString* str) const override; SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(FailImageFilter) private: @@ -113,12 +113,10 @@ sk_sp<SkFlattenable> FailImageFilter::CreateProc(SkReadBuffer& buffer) { return sk_sp<SkFlattenable>(new FailImageFilter()); } -#ifndef SK_IGNORE_TO_STRING void FailImageFilter::toString(SkString* str) const { str->appendf("FailImageFilter: ("); str->append(")"); } -#endif void draw_gradient_circle(SkCanvas* canvas, int width, int height) { SkScalar x = SkIntToScalar(width / 2); @@ -296,9 +294,7 @@ public: : SkImageFilter(nullptr, 0, nullptr), fBounds(bounds) {} private: -#ifndef SK_IGNORE_TO_STRING void toString(SkString*) const override {} -#endif Factory getFactory() const override { return nullptr; } sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* src, const Context&, @@ -320,12 +316,10 @@ sk_sp<SkFlattenable> MatrixTestImageFilter::CreateProc(SkReadBuffer& buffer) { return nullptr; } -#ifndef SK_IGNORE_TO_STRING void MatrixTestImageFilter::toString(SkString* str) const { str->appendf("MatrixTestImageFilter: ("); str->append(")"); } -#endif static sk_sp<SkImage> make_small_image() { auto surface(SkSurface::MakeRasterN32Premul(kBitmapSize, kBitmapSize)); @@ -1858,9 +1852,8 @@ DEF_TEST(ImageFilterColorSpaceDAG, reporter) { public: TestFilter() : INHERITED(nullptr, 0, nullptr) {} -#ifndef SK_IGNORE_TO_STRING void toString(SkString*) const override {} -#endif + Factory getFactory() const override { return nullptr; } size_t cloneCount() const { return fCloneCount; } |