diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-06 14:16:12 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-06 14:16:12 +0000 |
commit | b7061176c7f414616fe2e79e832b3e0abe326af6 (patch) | |
tree | 05269431ac1dfa9b62d5fa34a0351e2f21af712e /samplecode/SampleTextOnPath.cpp | |
parent | b27eba7c28c7a52e6af91743ab51c266ed96dccd (diff) |
Push sigma-based blur interface into our GMs/benches/tests/samplecode
https://codereview.chromium.org/23701006/
git-svn-id: http://skia.googlecode.com/svn/trunk@11129 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleTextOnPath.cpp')
-rw-r--r-- | samplecode/SampleTextOnPath.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/samplecode/SampleTextOnPath.cpp b/samplecode/SampleTextOnPath.cpp index 2337a08d1d..bfb35f8159 100644 --- a/samplecode/SampleTextOnPath.cpp +++ b/samplecode/SampleTextOnPath.cpp @@ -6,6 +6,7 @@ * found in the LICENSE file. */ #include "SampleCode.h" +#include "SkBlurMask.h" #include "SkBlurDrawLooper.h" #include "SkCanvas.h" #include "SkPath.h" @@ -34,10 +35,10 @@ static void textStrokePath(SkCanvas* canvas) { canvas->drawPath(path, paint); - paint.setLooper(new SkBlurDrawLooper(SkFloatToScalar(0.002f), - SkFloatToScalar(0.0f), - SkFloatToScalar(0.0f), - (SkColor)0xFF000000))->unref(); + paint.setLooper(new SkBlurDrawLooper(SK_ColorBLACK, + SkBlurMask::ConvertRadiusToSigma(SkFloatToScalar(0.002f)), + SkFloatToScalar(0.0f), + SkFloatToScalar(0.0f)))->unref(); const char* text = "DRAWING STROKED TEXT WITH A BLUR ON A PATH"; size_t len = strlen(text); |