Index: samplecode/SampleEffects.cpp |
diff --git a/samplecode/SampleEffects.cpp b/samplecode/SampleEffects.cpp |
index a8f793c160ce1e51e2a62f53b163c68b2fb6a7cb..c998052fabcedd5698386297453a6e122fe2d083 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) { |