Index: samplecode/SampleEmboss.cpp |
diff --git a/samplecode/SampleEmboss.cpp b/samplecode/SampleEmboss.cpp |
index 215a1e07d2f00a3378fcef0fa75b4df3480b1c7e..f1ea1fe547c790e3cf4acc732250fa02b7e5506a 100644 |
--- a/samplecode/SampleEmboss.cpp |
+++ b/samplecode/SampleEmboss.cpp |
@@ -50,8 +50,7 @@ protected: |
paint.setAntiAlias(true); |
paint.setStyle(SkPaint::kStroke_Style); |
paint.setStrokeWidth(SkIntToScalar(10)); |
- paint.setMaskFilter(SkEmbossMaskFilter::Create( |
- SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(4)), fLight))->unref(); |
+ paint.setMaskFilter(SkEmbossMaskFilter::Make(SkBlurMask::ConvertRadiusToSigma(4), fLight)); |
paint.setShader(SkShader::MakeColorShader(SK_ColorBLUE)); |
paint.setDither(true); |