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

Unified Diff: content/renderer/gpu/render_widget_compositor.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
Index: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index e16100cc04ac53349178a640cd0710712415e863..37aa5e9b5906cc4e283988a73f644bf259654a0d 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -1097,9 +1097,9 @@ void RenderWidgetCompositor::setBottomControlsHeight(float height) {
}
void RenderWidgetCompositor::RequestDecode(
- sk_sp<SkImage> image,
+ const PaintImage& image,
const base::Callback<void(bool)>& callback) {
- layer_tree_host_->QueueImageDecode(std::move(image), callback);
+ layer_tree_host_->QueueImageDecode(image, callback);
// If we're compositing synchronously, the SetNeedsCommit call which will be
// issued by |layer_tree_host_| is not going to cause a commit, due to the
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | third_party/WebKit/Source/core/exported/WebViewBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698