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

Unified Diff: cc/surfaces/display.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: cc/surfaces/display.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index 2b982d4694b6120e79de98925d9431da0745dec6..c32dff0bcfc952015ebaea3d33a8a057307f6287 100644
--- a/cc/surfaces/display.cc
+++ b/cc/surfaces/display.cc
@@ -71,7 +71,7 @@ Display::~Display() {
for (const auto& id_entry : aggregator_->previous_contained_surfaces()) {
Surface* surface = surface_manager_->GetSurfaceForId(id_entry.first);
if (surface)
- surface->RunDrawCallbacks();
+ surface->RunDrawCallback();
}
}
}
@@ -269,7 +269,7 @@ bool Display::DrawAndSwap() {
for (const auto& id_entry : aggregator_->previous_contained_surfaces()) {
Surface* surface = surface_manager_->GetSurfaceForId(id_entry.first);
if (surface)
- surface->RunDrawCallbacks();
+ surface->RunDrawCallback();
}
frame.metadata.latency_info.insert(frame.metadata.latency_info.end(),

Powered by Google App Engine
This is Rietveld 408576698