Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(551)

Unified Diff: gm/image_pict.cpp

Issue 1295593002: some catchup CL revisions (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/core/SkImageGenerator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « no previous file | include/core/SkImageGenerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698