Index: samplecode/SampleUnpremul.cpp |
diff --git a/samplecode/SampleUnpremul.cpp b/samplecode/SampleUnpremul.cpp |
index f2f60cc3129e7c3798ba35ccd66f3bcb157fb644..0b1848df95d4e1606a14ada1aa988795e9bae30f 100644 |
--- a/samplecode/SampleUnpremul.cpp |
+++ b/samplecode/SampleUnpremul.cpp |
@@ -85,10 +85,10 @@ protected: |
SkPaint paint; |
paint.setAntiAlias(true); |
paint.setTextSize(SkIntToScalar(24)); |
- SkAutoTUnref<SkBlurDrawLooper> looper(SkNEW_ARGS(SkBlurDrawLooper, |
- (SK_ColorBLUE, |
- SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(2)), |
- 0, 0))); |
+ SkAutoTUnref<SkBlurDrawLooper> looper( |
+ SkBlurDrawLooper::Create(SK_ColorBLUE, |
+ SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(2)), |
+ 0, 0)); |
paint.setLooper(looper); |
SkScalar height = paint.getFontMetrics(NULL); |
if (!fDecodeSucceeded) { |