Index: gm/rects.cpp |
diff --git a/gm/rects.cpp b/gm/rects.cpp |
index 6f4c75e22f066ae959f04c9078b2e28573b8f885..51eeff0bfb4bf847f901a85ece4aa337d249eeac 100644 |
--- a/gm/rects.cpp |
+++ b/gm/rects.cpp |
@@ -91,15 +91,12 @@ protected: |
SkPaint p; |
p.setColor(SK_ColorWHITE); |
p.setAntiAlias(true); |
- SkDrawLooper* shadowLooper = |
- SkBlurDrawLooper::Create(SK_ColorWHITE, |
+ p.setLooper(SkBlurDrawLooper::Make(SK_ColorWHITE, |
SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)), |
SkIntToScalar(5), SkIntToScalar(10), |
SkBlurDrawLooper::kIgnoreTransform_BlurFlag | |
SkBlurDrawLooper::kOverrideColor_BlurFlag | |
- SkBlurDrawLooper::kHighQuality_BlurFlag); |
- SkAutoUnref aurL0(shadowLooper); |
- p.setLooper(shadowLooper); |
+ SkBlurDrawLooper::kHighQuality_BlurFlag)); |
fPaints.push_back(p); |
} |