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

Unified Diff: cc/output/begin_frame_args.h

Issue 16871016: cc: Use BeginFrameArgs (Closed) Base URL: http://git.chromium.org/chromium/src.git@bfargs2
Patch Set: Fix tests Created 7 years, 4 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/output/begin_frame_args.cc » ('j') | cc/output/begin_frame_args.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/begin_frame_args.h
diff --git a/cc/output/begin_frame_args.h b/cc/output/begin_frame_args.h
index 22693dbef947dc814479b1cba52d58af149e2cbc..8d65db0f5ce9a42ce7f3afd4387169cfa4373390 100644
--- a/cc/output/begin_frame_args.h
+++ b/cc/output/begin_frame_args.h
@@ -37,9 +37,11 @@ struct CC_EXPORT BeginFrameArgs {
// retroactively.
static base::TimeDelta DefaultRetroactiveBeginFramePeriod();
- bool IsValid() const {
- return interval >= base::TimeDelta();
- }
+ // For platforms that haven't yet moved to deadline scheduling, this will set
+ // the deadline to 0.
+ void AdjustDeadline(base::TimeDelta delta);
+
+ bool IsValid() const { return interval >= base::TimeDelta(); }
base::TimeTicks frame_time;
base::TimeTicks deadline;
« no previous file with comments | « no previous file | cc/output/begin_frame_args.cc » ('j') | cc/output/begin_frame_args.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698