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

Unified Diff: cc/trees/layer_tree_host.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.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 8353078de2c1b47c6a07744b40ad6637f12df64a..560429afdcd3b527a3b1fe7e2ea3016b893b5db7 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -1413,10 +1413,10 @@ gfx::ScrollOffset LayerTreeHost::GetScrollOffsetForAnimation(
}
void LayerTreeHost::QueueImageDecode(
- sk_sp<const SkImage> image,
+ const PaintImage& image,
const base::Callback<void(bool)>& callback) {
TRACE_EVENT0("cc", "LayerTreeHost::QueueImageDecode");
- queued_image_decodes_.emplace_back(std::move(image), callback);
+ queued_image_decodes_.emplace_back(image, callback);
SetNeedsCommit();
}
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698