diff options
author | robertphillips <robertphillips@google.com> | 2016-04-04 12:07:47 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-04 12:07:47 -0700 |
commit | 4ba94e26106a4ecab4d3841d702b57487b82334e (patch) | |
tree | 9eaa8e3317d3215010245631d0d43bd596fcbd34 /tests/ImageFilterTest.cpp | |
parent | 8ef9108066567cdbb6c743a68a0738a84af54008 (diff) |
Switch internal testing ImageFilters over to new onFilterImage interface
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1854133002
Review URL: https://codereview.chromium.org/1854133002
Diffstat (limited to 'tests/ImageFilterTest.cpp')
-rw-r--r-- | tests/ImageFilterTest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp index 48d3147ef9..e6430b4d87 100644 --- a/tests/ImageFilterTest.cpp +++ b/tests/ImageFilterTest.cpp @@ -60,10 +60,11 @@ public: SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(MatrixTestImageFilter) protected: - bool onFilterImageDeprecated(Proxy*, const SkBitmap& src, const Context& ctx, - SkBitmap* result, SkIPoint* offset) const override { + sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context& ctx, + SkIPoint* offset) const override { REPORTER_ASSERT(fReporter, ctx.ctm() == fExpectedMatrix); - return true; + offset->fX = offset->fY = 0; + return sk_ref_sp<SkSpecialImage>(source); } void flatten(SkWriteBuffer& buffer) const override { |