Index: gm/image_pict.cpp |
diff --git a/gm/image_pict.cpp b/gm/image_pict.cpp |
index dd1fab549a830e54d9f1d4b9fd3ec1b3b70826d2..a8abea32b3cdecb654f89d129020586e5e65b7d4 100644 |
--- a/gm/image_pict.cpp |
+++ b/gm/image_pict.cpp |
@@ -128,10 +128,8 @@ protected: |
SkMatrix matrix; |
matrix.setTranslate(-100, -100); |
- fCache.reset(new SkImageCacherator(SkImageGenerator::NewFromPicture(size, |
- fPicture, |
- &matrix, |
- nullptr))); |
+ auto gen = SkImageGenerator::NewFromPicture(size, fPicture, &matrix, nullptr); |
+ fCache.reset(SkImageCacherator::NewFromGenerator(gen)); |
} |
void drawSet(SkCanvas* canvas) const { |