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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 2929493002: Plumb PaintImage for the img.decode instead of SkImage. (Closed)
Patch Set: Created 3 years, 6 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 | « cc/trees/layer_tree_host_impl.cc ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index b74965d7d81121fe8bb58852f0e0446c080f44fa..a361b9a6c586a9d0025e659fb8539c31f29c2b06 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -7799,7 +7799,8 @@ class LayerTreeHostTestQueueImageDecode : public LayerTreeHostTest {
return;
first_ = false;
- sk_sp<const SkImage> image = CreateDiscardableImage(gfx::Size(10, 10));
+ PaintImage image(PaintImage::GetNextId(),
+ CreateDiscardableImage(gfx::Size(10, 10)));
auto callback =
base::Bind(&LayerTreeHostTestQueueImageDecode::ImageDecodeFinished,
base::Unretained(this));
@@ -7835,7 +7836,7 @@ class LayerTreeHostTestQueueImageDecodeNonLazy : public LayerTreeHostTest {
first_ = false;
bitmap_.allocN32Pixels(10, 10);
- sk_sp<const SkImage> image = SkImage::MakeFromBitmap(bitmap_);
+ PaintImage image(PaintImage::GetNextId(), SkImage::MakeFromBitmap(bitmap_));
auto callback = base::Bind(
&LayerTreeHostTestQueueImageDecodeNonLazy::ImageDecodeFinished,
base::Unretained(this));
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698