Index: gm/tileimagefilter.cpp |
diff --git a/gm/tileimagefilter.cpp b/gm/tileimagefilter.cpp |
index 319aa3c9fa79a684a171b162205ecf22f971fb81..d6c8d4cbfc26bca9df18460b0410ff07fc60795c 100644 |
--- a/gm/tileimagefilter.cpp |
+++ b/gm/tileimagefilter.cpp |
@@ -83,9 +83,9 @@ protected: |
SkIntToScalar(i * 4), |
SkIntToScalar(bitmap->width() - i * 12), |
SkIntToScalar(bitmap->height()) - i * 12); |
- SkAutoTUnref<SkImageFilter> tileInput(SkNEW_ARGS(SkBitmapSource, (*bitmap))); |
- SkAutoTUnref<SkImageFilter> filter(SkNEW_ARGS( |
- SkTileImageFilter, (srcRect, dstRect, tileInput))); |
+ SkAutoTUnref<SkImageFilter> tileInput(SkBitmapSource::Create(*bitmap)); |
+ SkAutoTUnref<SkImageFilter> filter( |
+ SkTileImageFilter::Create(srcRect, dstRect, tileInput)); |
canvas->save(); |
canvas->translate(SkIntToScalar(x), SkIntToScalar(y)); |
paint.setImageFilter(filter); |