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

Unified Diff: content/browser/renderer_host/render_widget_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_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 0670683432c0d8ad50ab48e78c838654a48f9184..2b95d12755c48067f14f247a9da62550000213ff 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -309,9 +309,6 @@ void RenderWidgetHostImpl::SetView(RenderWidgetHostViewBase* view) {
view_->GetSurfaceIdNamespace()));
}
- GpuSurfaceTracker::Get()->SetSurfaceHandle(
- surface_id_, GetCompositingSurface());
-
synthetic_gesture_controller_.reset();
}
@@ -337,12 +334,6 @@ gfx::NativeViewId RenderWidgetHostImpl::GetNativeViewId() const {
return 0;
}
-gfx::GLSurfaceHandle RenderWidgetHostImpl::GetCompositingSurface() {
- if (view_)
- return view_->GetCompositingSurface();
- return gfx::GLSurfaceHandle();
-}
-
void RenderWidgetHostImpl::ResetSizeAndRepaintPendingFlags() {
resize_ack_pending_ = false;
if (repaint_ack_pending_) {
@@ -396,9 +387,6 @@ void RenderWidgetHostImpl::Init() {
renderer_initialized_ = true;
- GpuSurfaceTracker::Get()->SetSurfaceHandle(
- surface_id_, GetCompositingSurface());
-
// Send the ack along with the information on placement.
Send(new ViewMsg_CreatingNew_ACK(routing_id_));
GetProcess()->ResumeRequestsForView(routing_id_);
@@ -1273,8 +1261,6 @@ void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status,
StopHangMonitorTimeout();
if (view_) {
- GpuSurfaceTracker::Get()->SetSurfaceHandle(surface_id_,
- gfx::GLSurfaceHandle());
view_->RenderProcessGone(status, exit_code);
view_ = nullptr; // The View should be deleted by RenderProcessGone.
view_weak_.reset();

Powered by Google App Engine
This is Rietveld 408576698