aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleEffects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleEffects.cpp')
-rw-r--r--samplecode/SampleEffects.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/samplecode/SampleEffects.cpp b/samplecode/SampleEffects.cpp
index a8f793c160..c998052fab 100644
--- a/samplecode/SampleEffects.cpp
+++ b/samplecode/SampleEffects.cpp
@@ -22,18 +22,15 @@ static void paint_proc0(SkPaint*) {
}
static void paint_proc1(SkPaint* paint) {
- paint->setMaskFilter(SkBlurMaskFilter::Create(
+ paint->setMaskFilter(SkBlurMaskFilter::Make(
kNormal_SkBlurStyle,
- SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(2))))->unref();
+ SkBlurMask::ConvertRadiusToSigma(2)));
}
static void paint_proc2(SkPaint* paint) {
SkScalar dir[3] = { 1, 1, 1};
paint->setMaskFilter(
- SkBlurMaskFilter::CreateEmboss(SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(1)),
- dir,
- 0.1f,
- 0.05f))->unref();
+ SkBlurMaskFilter::MakeEmboss(SkBlurMask::ConvertRadiusToSigma(1), dir, 0.1f, 0.05f));
}
static void paint_proc3(SkPaint* paint) {