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

Unified Diff: cc/trees/layer_tree_host_impl.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.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index fe1084b397cd6ae7d039610f7374da8913483d27..de0c70448f6e6a10fefa7f8333b3d6d39633c3e3 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -2382,11 +2382,11 @@ LayerImpl* LayerTreeHostImpl::ViewportMainScrollLayer() {
}
void LayerTreeHostImpl::QueueImageDecode(
- sk_sp<const SkImage> image,
+ const PaintImage& image,
const base::Callback<void(bool)>& embedder_callback) {
decoded_image_tracker_.QueueImageDecode(
- std::move(image), base::Bind(&LayerTreeHostImpl::ImageDecodeFinished,
- base::Unretained(this), embedder_callback));
+ image, base::Bind(&LayerTreeHostImpl::ImageDecodeFinished,
+ base::Unretained(this), embedder_callback));
}
void LayerTreeHostImpl::ImageDecodeFinished(
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698