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

Unified Diff: cc/test/skia_common.cc

Issue 2706453003: switch to new ImageGenerator API (Closed)
Patch Set: fix typo Created 3 years, 10 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 | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/skia_common.cc
diff --git a/cc/test/skia_common.cc b/cc/test/skia_common.cc
index 320bbdd1154414e879953ed015638f5474f9d359..873df1523773ab93ae30447b748385c072b4b30c 100644
--- a/cc/test/skia_common.cc
+++ b/cc/test/skia_common.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
+#include "base/memory/ptr_util.h"
#include "cc/paint/paint_canvas.h"
#include "cc/playback/display_item_list.h"
#include "third_party/skia/include/core/SkImageGenerator.h"
@@ -68,7 +69,7 @@ bool AreDisplayListDrawingResultsSame(const gfx::Rect& layer_rect,
}
sk_sp<SkImage> CreateDiscardableImage(const gfx::Size& size) {
- return SkImage::MakeFromGenerator(new TestImageGenerator(
+ return SkImage::MakeFromGenerator(base::MakeUnique<TestImageGenerator>(
SkImageInfo::MakeN32Premul(size.width(), size.height())));
}
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698