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

Unified Diff: ui/compositor/compositor.cc

Issue 1016033006: Enable BeginFrame scheduling on aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable BeginFrame scheduling under flag 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 | « ui/compositor/compositor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index f80b75fe298d605fc960165d0c257b4659733907..2f360551e8049e0fe927b495be381196e52532a3 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -264,6 +264,17 @@ bool Compositor::IsVisible() {
return host_->visible();
}
+void Compositor::SetAuthoritativeVSyncInterval(
+ const base::TimeDelta& interval) {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ cc::switches::kEnableBeginFrameScheduling)) {
+ host_->SetAuthoritativeVSyncInterval(interval);
+ return;
+ }
+
+ vsync_manager_->SetAuthoritativeVSyncInterval(interval);
+}
+
scoped_refptr<CompositorVSyncManager> Compositor::vsync_manager() const {
return vsync_manager_;
}
« no previous file with comments | « ui/compositor/compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698