| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 5 #ifndef CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
| 6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // avoid requesting BeginImplFrames when we won't actually draw but still | 150 // avoid requesting BeginImplFrames when we won't actually draw but still |
| 151 // need to advance our state at vsync intervals. | 151 // need to advance our state at vsync intervals. |
| 152 void DidEnterPollForAnticipatedDrawTriggers(); | 152 void DidEnterPollForAnticipatedDrawTriggers(); |
| 153 void DidLeavePollForAnticipatedDrawTriggers(); | 153 void DidLeavePollForAnticipatedDrawTriggers(); |
| 154 bool inside_poll_for_anticipated_draw_triggers() const { | 154 bool inside_poll_for_anticipated_draw_triggers() const { |
| 155 return inside_poll_for_anticipated_draw_triggers_; | 155 return inside_poll_for_anticipated_draw_triggers_; |
| 156 } | 156 } |
| 157 | 157 |
| 158 // Indicates whether the LayerTreeHostImpl is visible. | 158 // Indicates whether the LayerTreeHostImpl is visible. |
| 159 void SetVisible(bool visible); | 159 void SetVisible(bool visible); |
| 160 bool visible() const { return visible_; } |
| 160 | 161 |
| 161 // Indicates that a redraw is required, either due to the impl tree changing | 162 // Indicates that a redraw is required, either due to the impl tree changing |
| 162 // or the screen being damaged and simply needing redisplay. | 163 // or the screen being damaged and simply needing redisplay. |
| 163 void SetNeedsRedraw(); | 164 void SetNeedsRedraw(); |
| 164 bool needs_redraw() const { return needs_redraw_; } | 165 bool needs_redraw() const { return needs_redraw_; } |
| 165 | 166 |
| 166 void SetNeedsAnimate(); | 167 void SetNeedsAnimate(); |
| 167 bool needs_animate() const { return needs_animate_; } | 168 bool needs_animate() const { return needs_animate_; } |
| 168 | 169 |
| 169 // Indicates that prepare-tiles is required. This guarantees another | 170 // Indicates that prepare-tiles is required. This guarantees another |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 bool impl_latency_takes_priority_on_battery_; | 338 bool impl_latency_takes_priority_on_battery_; |
| 338 bool children_need_begin_frames_; | 339 bool children_need_begin_frames_; |
| 339 | 340 |
| 340 private: | 341 private: |
| 341 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 342 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
| 342 }; | 343 }; |
| 343 | 344 |
| 344 } // namespace cc | 345 } // namespace cc |
| 345 | 346 |
| 346 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 347 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
| OLD | NEW |