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

Unified Diff: src/core/SkPaint.cpp

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: src/core/SkPaint.cpp
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp
index 331f7794bfe127b4a7b3641f6e81cc22857a4588..0389b08507a1386c2214c34b9eb02f1264418742 100644
--- a/src/core/SkPaint.cpp
+++ b/src/core/SkPaint.cpp
@@ -2040,7 +2040,7 @@ const SkRect& SkPaint::doComputeFastBounds(const SkRect& origSrc,
}
if (this->getImageFilter()) {
- this->getImageFilter()->computeFastBounds(*storage, storage);
+ *storage = this->getImageFilter()->computeFastBounds(*storage);
}
return *storage;

Powered by Google App Engine
This is Rietveld 408576698