aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SampleAndroidShadows.cpp
diff options
context:
space:
mode:
authorjvanverth <jvanverth@google.com>2016-09-14 07:04:49 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-14 07:04:49 -0700
commitc20c0c09254a4f77dfa9094a4e820a85e0c8121d (patch)
tree62940ecce88dbafd9f19a6a8b772ac025fe25ac0 /samplecode/SampleAndroidShadows.cpp
parent6ef6999017febaf0039b83c1ff4da1efe9c0e85d (diff)
Switch default for SkGaussianBlurShader radius size.
One step towards removing the 6.2 radius entirely. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2333403002 TBR=bsalomon@google.com Review-Url: https://codereview.chromium.org/2333403002
Diffstat (limited to 'samplecode/SampleAndroidShadows.cpp')
-rwxr-xr-xsamplecode/SampleAndroidShadows.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SampleAndroidShadows.cpp b/samplecode/SampleAndroidShadows.cpp
index e14c571ecd..cfb76d084d 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