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

Unified Diff: src/core/SkCanvas.cpp

Issue 1404353010: Protect apply_paint_to_bounds_sans_imagefilter() with an #ifdef. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkCanvas.cpp
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 1b32236ebc96c9333a90ada91e72c816d3d6edfb..9d1462b33921c9306daef52d64b033e3f5b5cc22 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -412,6 +412,7 @@ static SkColorFilter* image_to_color_filter(const SkPaint& paint) {
return SkColorFilter::CreateComposeFilter(imgCF, paintCF);
}
+#ifndef SK_SAVE_LAYER_BOUNDS_ARE_FILTERED
/**
* There are many bounds in skia. A circle's bounds is just its center extended by its radius.
* However, if we stroke a circle, then the "bounds" of that is larger, since it will now draw
@@ -433,6 +434,7 @@ static const SkRect& apply_paint_to_bounds_sans_imagefilter(const SkPaint& paint
return rawBounds;
}
}
+#endif
class AutoDrawLooper {
public:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698