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

Unified Diff: samplecode/SampleTextOnPath.cpp

Issue 23701006: Push sigma-based blur interface into our GMs/benches/tests/samplecode (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: cleaned up Created 7 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 | « samplecode/SampleTextAlpha.cpp ('k') | samplecode/SampleTextureDomain.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleTextOnPath.cpp
===================================================================
--- samplecode/SampleTextOnPath.cpp (revision 11108)
+++ samplecode/SampleTextOnPath.cpp (working copy)
@@ -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 @@
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);
« no previous file with comments | « samplecode/SampleTextAlpha.cpp ('k') | samplecode/SampleTextureDomain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698