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

Unified Diff: cc/scheduler/scheduler_state_machine.h

Issue 423773002: Unified BeginFrame scheduling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WIP in mac and android 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_state_machine.h
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
index d92a352f236af27058d8068174c8bd2d04092ac0..51816bca1fb288021e89b01c9291584e74033ee4 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -235,8 +235,12 @@ class CC_EXPORT SchedulerStateMachine {
continuous_painting_ = continuous_painting;
}
+ void SetChildrenNeedBeginFrames(bool children_need_begin_frames);
+ bool children_need_begin_frames() { return children_need_begin_frames_; }
+
protected:
bool BeginFrameNeededToAnimateOrDraw() const;
+ bool BeginFrameNeededToChildren() const;
bool ProactiveBeginFrameWanted() const;
// True if we need to force activations to make forward progress.
@@ -305,6 +309,7 @@ class CC_EXPORT SchedulerStateMachine {
bool skip_next_begin_main_frame_to_reduce_latency_;
bool skip_begin_main_frame_to_reduce_latency_;
bool continuous_painting_;
+ bool children_need_begin_frames_;
private:
DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);

Powered by Google App Engine
This is Rietveld 408576698