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

Unified Diff: include/effects/SkComposeImageFilter.h

Issue 1823573003: Change signatures of filter bounds methods to return a rect. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Hide legacy API behind #ifdef; switch callers to new API Created 4 years, 9 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: include/effects/SkComposeImageFilter.h
diff --git a/include/effects/SkComposeImageFilter.h b/include/effects/SkComposeImageFilter.h
index bdef08b5e6faf2502087ab98dcbae7031634d8dc..8c93b564f24a183916e4ded9a5ee5c7acd8aa38d 100644
--- a/include/effects/SkComposeImageFilter.h
+++ b/include/effects/SkComposeImageFilter.h
@@ -22,7 +22,7 @@ public:
SkImageFilter* inputs[2] = { outer, inner };
return new SkComposeImageFilter(inputs);
}
- void computeFastBounds(const SkRect& src, SkRect* dst) const override;
+ SkRect computeFastBounds(const SkRect& src) const override;
SK_TO_STRING_OVERRIDE()
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkComposeImageFilter)
@@ -34,7 +34,7 @@ protected:
}
SkSpecialImage* onFilterImage(SkSpecialImage* source, const Context&,
SkIPoint* offset) const override;
- bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*, MapDirection) const override;
+ SkIRect onFilterBounds(const SkIRect&, const SkMatrix&, MapDirection) const override;
private:
typedef SkImageFilter INHERITED;

Powered by Google App Engine
This is Rietveld 408576698