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

Unified Diff: cc/scheduler/scheduler.h

Issue 1012853003: Add DisplayScheduler for Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change Browser references to root surfce Created 5 years, 8 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/cc_tests.gyp ('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 0076b4ab4c9d2b2f4218a74227fcea3347d831c9..ec712011d6c0295d08c8b7c0c3195cf6e7aedb08 100644
--- a/cc/scheduler/scheduler.h
+++ b/cc/scheduler/scheduler.h
@@ -99,6 +99,7 @@ class CC_EXPORT Scheduler : public BeginFrameObserverMixIn {
const SchedulerSettings& settings() const { return settings_; }
+ void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval);
void CommitVSyncParameters(base::TimeTicks timebase,
base::TimeDelta interval);
void SetEstimatedParentDrawTime(base::TimeDelta draw_time);
@@ -171,8 +172,6 @@ class CC_EXPORT Scheduler : public BeginFrameObserverMixIn {
void SetChildrenNeedBeginFrames(bool children_need_begin_frames);
void SetVideoNeedsBeginFrames(bool video_needs_begin_frames);
- void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval);
-
protected:
Scheduler(SchedulerClient* client,
const SchedulerSettings& scheduler_settings,
@@ -231,6 +230,7 @@ class CC_EXPORT Scheduler : public BeginFrameObserverMixIn {
void DrawAndSwapIfPossible();
void ProcessScheduledActions();
bool CanCommitAndActivateBeforeDeadline() const;
+ bool CanDrawBeforeDeadline() const;
void AdvanceCommitStateIfPossible();
bool IsBeginMainFrameSentOrStarted() const;
void BeginRetroFrame();
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698