Index: gm/pictureimagefilter.cpp |
diff --git a/gm/pictureimagefilter.cpp b/gm/pictureimagefilter.cpp |
index 5547e87b1978d82e0e24d713ebf07c1dc43cb031..2b3cd14ea2f276ff85b9c96a04f7e8fcf7c976eb 100644 |
--- a/gm/pictureimagefilter.cpp |
+++ b/gm/pictureimagefilter.cpp |
@@ -54,9 +54,9 @@ protected: |
SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30); |
SkRect emptyRect = SkRect::MakeXYWH(20, 20, 0, 0); |
SkRect bounds = SkRect::MakeXYWH(0, 0, 100, 100); |
- SkAutoTUnref<SkImageFilter> pictureSource(new SkPictureImageFilter(&fPicture)); |
- SkAutoTUnref<SkImageFilter> pictureSourceSrcRect(new SkPictureImageFilter(&fPicture, srcRect)); |
- SkAutoTUnref<SkImageFilter> pictureSourceEmptyRect(new SkPictureImageFilter(&fPicture, emptyRect)); |
+ SkAutoTUnref<SkImageFilter> pictureSource(SkPictureImageFilter::Create(&fPicture)); |
+ SkAutoTUnref<SkImageFilter> pictureSourceSrcRect(SkPictureImageFilter::Create(&fPicture, srcRect)); |
+ SkAutoTUnref<SkImageFilter> pictureSourceEmptyRect(SkPictureImageFilter::Create(&fPicture, emptyRect)); |
// Draw the picture unscaled. |
fillRectFiltered(canvas, bounds, pictureSource); |