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

Unified Diff: cc/scheduler/scheduler.h

Issue 423773002: Unified BeginFrame scheduling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Working on aura with --enable-begin-frame-scheduling Created 6 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
Index: cc/scheduler/scheduler.h
diff --git a/cc/scheduler/scheduler.h b/cc/scheduler/scheduler.h
index 311a71d4b0a66135b84cd0f5f0e1ea9279548d4c..d276403012313461e91b62d4d5281b0c7940c125 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 SendBeginFrame(const BeginFrameArgs& args) = 0;
protected:
virtual ~SchedulerClient() {}
@@ -143,6 +144,8 @@ class CC_EXPORT Scheduler {
state_machine_.SetContinuousPainting(continuous_painting);
}
+ void BeginFrameRequested();
+
protected:
class CC_EXPORT SyntheticBeginFrameSource : public TimeSourceClient {
public:
@@ -208,6 +211,8 @@ class CC_EXPORT Scheduler {
bool inside_process_scheduled_actions_;
SchedulerStateMachine::Action inside_action_;
+ bool begin_frame_requested_;
brianderson 2014/08/21 00:13:59 Store this in the state machine as children_need_b
simonhong 2014/08/26 08:24:47 Done.
+
private:
base::TimeTicks AdjustedBeginImplFrameDeadline(
const BeginFrameArgs& args,

Powered by Google App Engine
This is Rietveld 408576698