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

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

Issue 1365563002: Make channel preemption not require view contexts for hookup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wakeup_gpu
Patch Set: rebase Created 5 years, 3 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 7f56350b8e466e41e74465c6f77975a00ddce778..d6e0956d3b4e9d32eb6fc4d078af7f200195dd3f 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -31,7 +31,6 @@
#include "content/browser/gpu/compositor_util.h"
#include "content/browser/gpu/gpu_data_manager_impl.h"
#include "content/browser/gpu/gpu_process_host.h"
-#include "content/browser/gpu/gpu_surface_tracker.h"
#include "content/browser/host_zoom_map_impl.h"
#include "content/browser/loader/resource_dispatcher_host_impl.h"
#include "content/browser/renderer_host/dip_util.h"
@@ -298,19 +297,6 @@ bool RenderViewHostImpl::CreateRenderView(
set_renderer_initialized(true);
- // If this is not an active RenderView, then we need to create a
- // handle with NULL_TRANSPORT type. Active RenderViews will implement
- // GetCompositingSurface() in the RenderWidgetHostView delegate which returns
- // the appropriate surface type.
- if (proxy_route_id != MSG_ROUTING_NONE) {
- GpuSurfaceTracker::Get()->SetSurfaceHandle(
- surface_id(),
- gfx::GLSurfaceHandle(gfx::kNullPluginWindow, gfx::NULL_TRANSPORT));
- } else {
- GpuSurfaceTracker::Get()->SetSurfaceHandle(surface_id(),
- GetCompositingSurface());
- }
-
// Ensure the RenderView starts with a next_page_id larger than any existing
// page ID it might be asked to render.
int32 next_page_id = 1;
« no previous file with comments | « content/browser/renderer_host/gpu_message_filter.cc ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698