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

Unified Diff: content/browser/renderer_host/render_widget_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: Set initial namespace value 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_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 0923657632c9eabcf91d2ec323cdbfeb7373cac5..e1d3199d9745259373ba3ae2c2691062357dd316 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -412,8 +412,12 @@ void RenderWidgetHostImpl::Init() {
GpuSurfaceTracker::Get()->SetSurfaceHandle(
surface_id_, GetCompositingSurface());
+ uint32_t surface_id_namespace = 0;
+ if (view_)
+ surface_id_namespace = view_->GetSurfaceIdNamespace();
+
// Send the ack along with the information on placement.
- Send(new ViewMsg_CreatingNew_ACK(routing_id_));
+ Send(new ViewMsg_CreatingNew_ACK(routing_id_, surface_id_namespace));
GetProcess()->ResumeRequestsForView(routing_id_);
WasResized();

Powered by Google App Engine
This is Rietveld 408576698