Index: samplecode/SampleAll.cpp |
diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp |
index 6410670fedbf4758a3d24787ceacb7eccb320189..347e5cd3ba78408c448af0bc0037e8e7fdea3828 100644 |
--- a/samplecode/SampleAll.cpp |
+++ b/samplecode/SampleAll.cpp |
@@ -388,7 +388,7 @@ protected: |
light.fAmbient = 0x48; |
light.fSpecular = 0x80; |
SkScalar sigma = SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(12)/5); |
- SkEmbossMaskFilter* embossFilter = new SkEmbossMaskFilter(sigma, light); |
+ SkEmbossMaskFilter* embossFilter = SkEmbossMaskFilter::Create(sigma, light); |
SkXfermode* xfermode = SkXfermode::Create(SkXfermode::kXor_Mode); |
SkColorFilter* lightingFilter = SkColorFilter::CreateLightingFilter( |