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

Unified Diff: samplecode/SampleAndroidShadows.cpp

Issue 2333403002: Switch default for SkGaussianBlurShader radius size. (Closed)
Patch Set: Address comment Created 4 years, 3 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 | « include/effects/SkGaussianEdgeShader.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleAndroidShadows.cpp
diff --git a/samplecode/SampleAndroidShadows.cpp b/samplecode/SampleAndroidShadows.cpp
index e14c571ecd18febdbfc6abb470767f2021631e7b..cfb76d084db6d6874d132b860c6ed403531f462c 100755
--- a/samplecode/SampleAndroidShadows.cpp
+++ b/samplecode/SampleAndroidShadows.cpp
@@ -199,7 +199,7 @@ protected:
paint.setColor(SkColorSetARGB(alpha, iRadius >> 8, iRadius & 0xff,
(unsigned char)(4.0f*pad)));
- paint.setShader(SkGaussianEdgeShader::Make(true));
+ paint.setShader(SkGaussianEdgeShader::Make());
canvas->drawRRect(pathRRect, paint);
}
@@ -320,7 +320,7 @@ protected:
paint.setStyle(SkPaint::kStroke_Style);
paint.setStrokeWidth(strokeWidth);
}
- paint.setShader(SkGaussianEdgeShader::Make(true));
+ paint.setShader(SkGaussianEdgeShader::Make());
// handle scale of radius due to CTM
radius *= scaleFactors[0];
// don't need to scale pad as it was computed from the transformed offset
« no previous file with comments | « include/effects/SkGaussianEdgeShader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698