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

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

Issue 1306053008: Avoid creating a RenderWidgetHostView for proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 5 years, 4 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 7e4d7af0be501ef022b2e30413639c6b2f83eada..a96b7f0765e80098be78d08840be77bad3a27bc7 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -295,8 +295,14 @@ bool RenderViewHostImpl::CreateRenderView(
set_renderer_initialized(true);
- GpuSurfaceTracker::Get()->SetSurfaceHandle(
- surface_id(), GetCompositingSurface());
+ if (proxy_route_id == MSG_ROUTING_NONE) {
+ GpuSurfaceTracker::Get()->SetSurfaceHandle(surface_id(),
+ GetCompositingSurface());
+ } else {
+ GpuSurfaceTracker::Get()->SetSurfaceHandle(
Charlie Reis 2015/08/31 19:02:51 Please leave a comment so others will understand w
lfg 2015/09/02 00:32:17 Done.
+ surface_id(),
+ gfx::GLSurfaceHandle(gfx::kNullPluginWindow, gfx::NULL_TRANSPORT));
+ }
// Ensure the RenderView starts with a next_page_id larger than any existing
// page ID it might be asked to render.

Powered by Google App Engine
This is Rietveld 408576698