| Index: tests/PaintTest.cpp
|
| diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp
|
| index c41e23ac54630e5844710f6427a7a8c1671bb208..cfbe23aa6f63f9ee0ab0151cb5b344bbe3fab13e 100644
|
| --- a/tests/PaintTest.cpp
|
| +++ b/tests/PaintTest.cpp
|
| @@ -147,7 +147,8 @@ DEF_TEST(Paint_copy, reporter) {
|
| paint.setTextAlign(SkPaint::kLeft_Align);
|
| paint.setStrokeWidth(SkIntToScalar(2));
|
| // set a few pointers
|
| - SkLayerDrawLooper* looper = new SkLayerDrawLooper();
|
| + SkLayerDrawLooper::Builder looperBuilder;
|
| + SkLayerDrawLooper* looper = looperBuilder.detachLooper();
|
| paint.setLooper(looper)->unref();
|
| SkMaskFilter* mask = SkBlurMaskFilter::Create(SkBlurMaskFilter::kNormal_BlurStyle,
|
| SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(1)));
|
|
|