Index: cc/scheduler/scheduler_state_machine.h |
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h |
index b579998b5e1abbd6d912eb074d141ce90b9d491d..9dc7817d473c9ad6ee1c719746ca0dd2293238cd 100644 |
--- a/cc/scheduler/scheduler_state_machine.h |
+++ b/cc/scheduler/scheduler_state_machine.h |
@@ -124,6 +124,10 @@ class CC_EXPORT SchedulerStateMachine { |
// to make progress. |
bool BeginFrameNeeded() const; |
+ // Indicates whether the scheduler should call |
+ // SetNeedsBeginFrames(BeginFrameNeeded()) on the frame source. |
+ bool ShouldSetNeedsBeginFrames(bool frame_source_needs_begin_frames) const; |
+ |
// Indicates that we need to independently poll for new state and actions |
// because we can't expect a BeginImplFrame. This is mostly used to avoid |
// drawing repeat frames with the synchronous compositor without dropping |
@@ -157,6 +161,7 @@ class CC_EXPORT SchedulerStateMachine { |
// Indicates whether the LayerTreeHostImpl is visible. |
void SetVisible(bool visible); |
+ bool visible() const { return visible_; } |
// Indicates that a redraw is required, either due to the impl tree changing |
// or the screen being damaged and simply needing redisplay. |