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

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

Issue 2834553002: Replace CompositorFrameSinkSupport::WillDrawSurface With RepeatingCallback (Closed)
Patch Set: Fix render_widget_host_view_aura_unittest Created 3 years, 8 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/delegated_frame_host.cc
diff --git a/content/browser/renderer_host/delegated_frame_host.cc b/content/browser/renderer_host/delegated_frame_host.cc
index 2db813487f12ff86f0473fb0bb74568365a24df5..c88afcb235eede4113ba5db615d1f33492086702 100644
--- a/content/browser/renderer_host/delegated_frame_host.cc
+++ b/content/browser/renderer_host/delegated_frame_host.cc
@@ -509,7 +509,7 @@ void DelegatedFrameHost::WillDrawSurface(const cc::LocalSurfaceId& id,
// do not attempt capture if |damage_rect| is empty. This prevents the draws
danakj 2017/04/20 17:56:45 This comment no longer works
Alex Z. 2017/04/20 18:10:21 Done.
// of parent surfaces from triggering extra frame captures, which can affect
// smoothness.
- if (id != local_surface_id_ || damage_rect.IsEmpty())
+ if (id != local_surface_id_)
return;
AttemptFrameSubscriberCapture(damage_rect);
}

Powered by Google App Engine
This is Rietveld 408576698