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

Unified Diff: cc/scheduler/scheduler_state_machine.h

Issue 723713003: cc: Add SetChildrenNeedBeginFrames() & SendBeginFramesToChildren() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More tests are added Created 6 years, 1 month 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 a63a683e90787692fdad05fc2ca6c229b2f342e4..7cdb3177ec84b41cc0231838c50694b60ee5aaf9 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -248,8 +248,14 @@ class CC_EXPORT SchedulerStateMachine {
// We should remove it afterwards.
std::string GetStatesForDebugging() const;
+ void SetChildrenNeedBeginFrames(bool children_need_begin_frames);
+ bool children_need_begin_frames() const {
+ return children_need_begin_frames_;
+ }
+
protected:
bool BeginFrameNeededToAnimateOrDraw() const;
+ bool BeginFrameNeededForChildren() const;
bool ProactiveBeginFrameWanted() const;
// True if we need to force activations to make forward progress.
@@ -321,6 +327,7 @@ class CC_EXPORT SchedulerStateMachine {
bool skip_begin_main_frame_to_reduce_latency_;
bool continuous_painting_;
bool impl_latency_takes_priority_on_battery_;
+ bool children_need_begin_frames_;
private:
DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);

Powered by Google App Engine
This is Rietveld 408576698