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

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: fix build and broken 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 a4b3eda71ad9ff4919d3ab0323a72b21cc5cc29e..1e5f5374d0e47d8e7817db8a39815187511f1730 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());
no sievers 2015/09/23 21:53:21 It looks to me like removing this would possibly a
piman 2015/09/23 23:33:37 Added a TODO and filed a bug. I thought we still r
-
// 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