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

Unified Diff: components/surfaces/surfaces_scheduler.cc

Issue 1138563002: Add DisplayScheduler for Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rendererLatencyRecoveryHeuristic
Patch Set: rebase Created 5 years, 7 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
« no previous file with comments | « components/surfaces/surfaces_scheduler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/surfaces/surfaces_scheduler.cc
diff --git a/components/surfaces/surfaces_scheduler.cc b/components/surfaces/surfaces_scheduler.cc
index 726f685afee73d53d779774689f6a09b98cbd724..85545820ee75265f65df1900294c95953549f487 100644
--- a/components/surfaces/surfaces_scheduler.cc
+++ b/components/surfaces/surfaces_scheduler.cc
@@ -63,7 +63,7 @@ void SurfacesScheduler::ScheduledActionSendBeginMainFrame() {
cc::DrawResult SurfacesScheduler::ScheduledActionDrawAndSwapIfPossible() {
base::TimeTicks start = base::TimeTicks::Now();
for (const auto& it : displays_) {
- it->Draw();
+ it->DrawAndSwap();
}
base::TimeDelta duration = base::TimeTicks::Now() - start;
« no previous file with comments | « components/surfaces/surfaces_scheduler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698