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

Unified Diff: cc/scheduler/scheduler.h

Issue 548153004: Unified BeginFrame scheduling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 6 years, 3 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 | « cc/output/output_surface.cc ('k') | 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 97b17b7283aaf4e357be4fd8e5726298f80c63cf..4273e4b1f39249d86e835f5dd29dcc20d580d4bc 100644
--- a/cc/scheduler/scheduler.h
+++ b/cc/scheduler/scheduler.h
@@ -46,6 +46,7 @@ class SchedulerClient {
virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() = 0;
virtual base::TimeDelta CommitToActivateDurationEstimate() = 0;
virtual void DidBeginImplFrameDeadline() = 0;
+ virtual void SendBeginFrameToChildren(const BeginFrameArgs& args) = 0;
protected:
virtual ~SchedulerClient() {}
@@ -133,6 +134,11 @@ class CC_EXPORT Scheduler {
state_machine_.SetContinuousPainting(continuous_painting);
}
+ // SetChildrenNeedBeginFrames() is only used when this Scheduler is acting
+ // as the publisher.
+ void SetChildrenNeedBeginFrames(bool need_begin_frame);
+ void SetAuthoritativeVSyncInterval(base::TimeDelta interval);
+
protected:
class CC_EXPORT SyntheticBeginFrameSource : public TimeSourceClient {
public:
@@ -174,6 +180,9 @@ class CC_EXPORT Scheduler {
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
base::TimeDelta vsync_interval_;
+ base::TimeDelta authoritative_vsync_interval_;
+ base::TimeTicks last_timebase_;
+
base::TimeDelta estimated_parent_draw_time_;
bool last_set_needs_begin_frame_;
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698