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

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: rebase on master 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
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler_state_machine.h
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
index 489ece623022e3c1ad31970579a226bc250ca8fd..c69c9595837297b61ad33719e4e763d26875931e 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -247,8 +247,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.
@@ -316,6 +322,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);
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698