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

Unified Diff: cc/surfaces/surface_aggregator.cc

Issue 2834553002: Replace CompositorFrameSinkSupport::WillDrawSurface With RepeatingCallback (Closed)
Patch Set: Fix surface_aggregator_perftest 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: cc/surfaces/surface_aggregator.cc
diff --git a/cc/surfaces/surface_aggregator.cc b/cc/surfaces/surface_aggregator.cc
index 526b19324e9c76284fa9fee72ff76dfed6956690..112e8e77624384398cf6d59654d83332e81f9940 100644
--- a/cc/surfaces/surface_aggregator.cc
+++ b/cc/surfaces/surface_aggregator.cc
@@ -759,10 +759,8 @@ gfx::Rect SurfaceAggregator::PrewalkTree(const SurfaceId& surface_id,
}
CHECK(debug_weak_this.get());
- if (surface->factory()) {
- surface->factory()->WillDrawSurface(
- surface->surface_id().local_surface_id(), damage_rect);
- }
+ if (!damage_rect.IsEmpty())
danakj 2017/04/20 13:56:45 Can you leave a TODO that this shouldn't need to c
Alex Z. 2017/04/20 14:05:03 Done.
+ surface->RunWillDrawCallbacks(damage_rect);
danakj 2017/04/20 13:56:45 Also, DelegatedFrameHost doesn't need to check for
Alex Z. 2017/04/20 14:05:03 Done. Does DFH need to check the local surface id?
danakj 2017/04/20 14:18:43 I'm not sure, you could look at when each is set t
Alex Z. 2017/04/20 17:42:26 DelegatedFrameHost updates local_surface_id_ in S
CHECK(debug_weak_this.get());
for (const auto& render_pass : frame.render_pass_list) {

Powered by Google App Engine
This is Rietveld 408576698