Index: samplecode/SampleEmboss.cpp |
diff --git a/samplecode/SampleEmboss.cpp b/samplecode/SampleEmboss.cpp |
index dacd4bfd2fa0cee713643dec794a26bdb2e15e15..1810a09f767c48d66d20f97ea405d7f0f39de8d4 100644 |
--- a/samplecode/SampleEmboss.cpp |
+++ b/samplecode/SampleEmboss.cpp |
@@ -53,7 +53,7 @@ protected: |
paint.setAntiAlias(true); |
paint.setStyle(SkPaint::kStroke_Style); |
paint.setStrokeWidth(SkIntToScalar(10)); |
- paint.setMaskFilter(new SkEmbossMaskFilter( |
+ paint.setMaskFilter(SkEmbossMaskFilter::Create( |
SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(4)), fLight))->unref(); |
paint.setShader(new SkColorShader(SK_ColorBLUE))->unref(); |
paint.setDither(true); |