Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: tests/ImageFilterTest.cpp

Issue 1854133002: Switch internal testing ImageFilters over to new onFilterImage interface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/ImageFilterTest.cpp
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp
index 48d3147ef9d275bb58d6cdd6df61947f7b179dbc..e6430b4d8775c56b55ba6a14bb2e109dc45fcd94 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 {

Powered by Google App Engine
This is Rietveld 408576698