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

Unified Diff: cc/output/begin_frame_args.cc

Issue 16871016: cc: Use BeginFrameArgs (Closed) Base URL: http://git.chromium.org/chromium/src.git@bfargs2
Patch Set: address comments Created 7 years, 6 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 | « no previous file | cc/scheduler/scheduler.h » ('j') | cc/scheduler/scheduler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/begin_frame_args.cc
diff --git a/cc/output/begin_frame_args.cc b/cc/output/begin_frame_args.cc
index cefb22bdc1382aa20f6217a5f077fad39d5daa98..8124617b694f43576c7b3116ac31bb441c05674d 100644
--- a/cc/output/begin_frame_args.cc
+++ b/cc/output/begin_frame_args.cc
@@ -49,9 +49,13 @@ BeginFrameArgs BeginFrameArgs::CreateExpiredForTesting() {
}
base::TimeDelta BeginFrameArgs::DefaultDeadlineAdjustment() {
+#if defined(OS_ANDROID)
+ return base::TimeDelta::FromMicroseconds(-16666/3);
+#else
// Using a large deadline adjustment will effectively revert BeginFrame
// scheduling to the hard vsync scheduling we used to have.
return base::TimeDelta::FromSeconds(-1);
+#endif
}
base::TimeDelta BeginFrameArgs::DefaultInterval() {
« no previous file with comments | « no previous file | cc/scheduler/scheduler.h » ('j') | cc/scheduler/scheduler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698