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

Unified Diff: cc/scheduler/scheduler.h

Issue 1005553004: cc: Add support for handling authoritative vsync interval (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler.h
diff --git a/cc/scheduler/scheduler.h b/cc/scheduler/scheduler.h
index 8ed584a5d49a7c6492eeef1e37043c538e1d7ecd..3a4af5a1930227cde95a5f2347609e0b44df481d 100644
--- a/cc/scheduler/scheduler.h
+++ b/cc/scheduler/scheduler.h
@@ -166,6 +166,8 @@ class CC_EXPORT Scheduler : public BeginFrameObserverMixIn {
void SetChildrenNeedBeginFrames(bool children_need_begin_frames);
+ void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval);
+
protected:
Scheduler(SchedulerClient* client,
const SchedulerSettings& scheduler_settings,
@@ -189,6 +191,9 @@ class CC_EXPORT Scheduler : public BeginFrameObserverMixIn {
scoped_ptr<BeginFrameSource> unthrottled_frame_source_internal_;
VSyncParameterObserver* vsync_observer_;
+ base::TimeDelta authoritative_vsync_interval_;
+ base::TimeTicks last_vsync_timebase_;
+
bool throttle_frame_production_;
const SchedulerSettings settings_;
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698