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

Unified Diff: components/surfaces/surfaces_scheduler.cc

Issue 1012853003: Add DisplayScheduler for Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change Browser references to root surfce Created 5 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
« 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 05b77d9f4253b6d3c23fdde1110e23c38ffe4291..6e2eb7a785b4ae19238dc37764a0f62afae09402 100644
--- a/components/surfaces/surfaces_scheduler.cc
+++ b/components/surfaces/surfaces_scheduler.cc
@@ -56,7 +56,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