Index: content/browser/renderer_host/render_view_host_factory.cc |
diff --git a/content/browser/renderer_host/render_view_host_factory.cc b/content/browser/renderer_host/render_view_host_factory.cc |
index bfa5c98fff9dfe665189c61fba585c48a5dc65ea..2e166c4e07fe7a22d1f1a5f80c5bc24a1a3d3f68 100644 |
--- a/content/browser/renderer_host/render_view_host_factory.cc |
+++ b/content/browser/renderer_host/render_view_host_factory.cc |
@@ -5,7 +5,6 @@ |
#include "content/browser/renderer_host/render_view_host_factory.h" |
#include "base/logging.h" |
-#include "content/browser/gpu/gpu_surface_tracker.h" |
#include "content/browser/renderer_host/render_view_host_impl.h" |
namespace content { |
@@ -22,7 +21,6 @@ RenderViewHost* RenderViewHostFactory::Create( |
int32 main_frame_routing_id, |
bool swapped_out, |
bool hidden) { |
- int32 surface_id; |
// RenderViewHost creation can be either browser-driven (by the user opening a |
// new tab) or renderer-driven (by script calling window.open, etc). |
// |
@@ -30,27 +28,22 @@ RenderViewHost* RenderViewHostFactory::Create( |
// this is signified by passing MSG_ROUTING_NONE for |routing_id|. |
if (routing_id == MSG_ROUTING_NONE) { |
routing_id = instance->GetProcess()->GetNextRoutingID(); |
- // No surface has yet been created for the RVH. |
- surface_id = GpuSurfaceTracker::Get()->AddSurfaceForRenderer( |
- instance->GetProcess()->GetID(), routing_id); |
} else { |
// Otherwise, in the renderer-driven case, the routing ID of the view is |
// already set. This is due to the fact that a sync render->browser IPC is |
// involved. In order to quickly reply to the sync IPC, the routing IDs are |
// assigned as early as possible. The IO thread immediately sends a reply to |
// the sync IPC, while deferring the creation of the actual Host objects to |
- // the UI thread. In this case, a surface already exists for the RVH. |
- surface_id = GpuSurfaceTracker::Get()->LookupSurfaceForRenderer( |
- instance->GetProcess()->GetID(), routing_id); |
+ // the UI thread. |
} |
if (factory_) { |
return factory_->CreateRenderViewHost(instance, delegate, widget_delegate, |
- routing_id, surface_id, |
- main_frame_routing_id, swapped_out); |
+ routing_id, main_frame_routing_id, |
+ swapped_out); |
} |
return new RenderViewHostImpl(instance, delegate, widget_delegate, routing_id, |
- surface_id, main_frame_routing_id, swapped_out, |
- hidden, true /* has_initialized_audio_host */); |
+ main_frame_routing_id, swapped_out, hidden, |
+ true /* has_initialized_audio_host */); |
} |
// static |