diff options
Diffstat (limited to 'samplecode/SampleEmboss.cpp')
| -rw-r--r-- | samplecode/SampleEmboss.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/samplecode/SampleEmboss.cpp b/samplecode/SampleEmboss.cpp index 215a1e07d2..f1ea1fe547 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); |
