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

Unified Diff: src/core/SkMaskFilter.cpp

Issue 1955633002: Take SkStrokeRec::InitStyle rather than SkPaint::Style in mask filter and DrawMask (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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/SkMaskFilter.cpp
diff --git a/src/core/SkMaskFilter.cpp b/src/core/SkMaskFilter.cpp
index cacc0524141cd9a5eb0b533c791f0cb670e7d117..f78ae7a8913a5c79bc00624fbf70e992e5ebe655 100644
--- a/src/core/SkMaskFilter.cpp
+++ b/src/core/SkMaskFilter.cpp
@@ -215,7 +215,7 @@ static int countNestedRects(const SkPath& path, SkRect rects[2]) {
bool SkMaskFilter::filterRRect(const SkRRect& devRRect, const SkMatrix& matrix,
const SkRasterClip& clip, SkBlitter* blitter,
robertphillips 2016/05/05 19:57:20 style is unused here ? can we delete is as a param
bsalomon 2016/05/05 20:15:17 I think so. The one caller (SkDraw::drawRRect) doe
- SkPaint::Style style) const {
+ SkStrokeRec::InitStyle style) const {
// Attempt to speed up drawing by creating a nine patch. If a nine patch
// cannot be used, return false to allow our caller to recover and perform
// the drawing another way.
@@ -233,10 +233,10 @@ bool SkMaskFilter::filterRRect(const SkRRect& devRRect, const SkMatrix& matrix,
bool SkMaskFilter::filterPath(const SkPath& devPath, const SkMatrix& matrix,
const SkRasterClip& clip, SkBlitter* blitter,
- SkPaint::Style style) const {
+ SkStrokeRec::InitStyle style) const {
SkRect rects[2];
int rectCount = 0;
robertphillips 2016/05/05 19:52:06 yoda speak ?
bsalomon 2016/05/05 20:15:17 Done.
- if (SkPaint::kFill_Style == style) {
+ if (style == SkStrokeRec::kFill_InitStyle) {
rectCount = countNestedRects(devPath, rects);
}
if (rectCount > 0) {
« src/core/SkDraw.cpp ('K') | « src/core/SkDraw.cpp ('k') | src/core/SkRasterizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698