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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 1129883003: Pass Surface ID namespace to renderer compositors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mac bug. Created 5 years, 7 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/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index b0ddbdec789ba2c818087d9420daf51af597e76f..a6f7a4567da0a113b7945b2b8058d651d49377af 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -336,6 +336,13 @@ bool RenderViewHostImpl::CreateRenderView(
return false;
SetInitialRenderSizeParams(params.initial_size);
+ // If the RWHV has not yet been set, the surface ID namespace will get
+ // passed down by the call to SetView().
+ if (view_) {
+ Send(new ViewMsg_SetSurfaceIdNamespace(GetRoutingID(),
+ view_->GetSurfaceIdNamespace()));
+ }
+
// If it's enabled, tell the renderer to set up the Javascript bindings for
// sending messages back to the browser.
if (GetProcess()->IsIsolatedGuest())

Powered by Google App Engine
This is Rietveld 408576698