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

Unified Diff: content/renderer/render_widget.cc

Issue 2778933002: renderer-mus: Plumb LocalSurfaceId into RenderWidgetCompositor (Closed)
Patch Set: Created 3 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 6be17703805bf314b827aec8378149cd83b9110a..76be34d54dee28e65460ae4ba2418696e89fe6ec 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1283,6 +1283,12 @@ blink::WebLayerTreeView* RenderWidget::initializeLayerTreeView() {
OnDeviceScaleFactorChanged();
compositor_->SetRasterColorSpace(screen_info_.icc_profile.GetColorSpace());
compositor_->SetContentSourceId(current_content_source_id_);
+#if defined(USE_AURA)
+ RendererWindowTreeClient* window_tree_client =
+ RendererWindowTreeClient::Get(routing_id_);
+ if (window_tree_client)
+ compositor_->SetLocalSurfaceId(window_tree_client->local_surface_id());
+#endif
// For background pages and certain tests, we don't want to trigger
// CompositorFrameSink creation.
if (compositor_never_visible_ || !RenderThreadImpl::current())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698