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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 bool ShouldBeginOutputSurfaceCreation() const; | 253 bool ShouldBeginOutputSurfaceCreation() const; |
254 bool ShouldDrawForced() const; | 254 bool ShouldDrawForced() const; |
255 bool ShouldDraw() const; | 255 bool ShouldDraw() const; |
256 bool ShouldActivatePendingTree() const; | 256 bool ShouldActivatePendingTree() const; |
257 bool ShouldUpdateVisibleTiles() const; | 257 bool ShouldUpdateVisibleTiles() const; |
258 bool ShouldSendBeginMainFrame() const; | 258 bool ShouldSendBeginMainFrame() const; |
259 bool ShouldCommit() const; | 259 bool ShouldCommit() const; |
260 bool ShouldManageTiles() const; | 260 bool ShouldManageTiles() const; |
261 | 261 |
262 void AdvanceCurrentFrameNumber(); | 262 void AdvanceCurrentFrameNumber(); |
| 263 bool HasAnimatedThisFrame() const; |
263 bool HasSentBeginMainFrameThisFrame() const; | 264 bool HasSentBeginMainFrameThisFrame() const; |
264 bool HasUpdatedVisibleTilesThisFrame() const; | 265 bool HasUpdatedVisibleTilesThisFrame() const; |
265 bool HasRequestedSwapThisFrame() const; | 266 bool HasRequestedSwapThisFrame() const; |
266 bool HasSwappedThisFrame() const; | 267 bool HasSwappedThisFrame() const; |
267 | 268 |
268 void UpdateStateOnCommit(bool commit_was_aborted); | 269 void UpdateStateOnCommit(bool commit_was_aborted); |
269 void UpdateStateOnActivation(); | 270 void UpdateStateOnActivation(); |
270 void UpdateStateOnDraw(bool did_request_swap); | 271 void UpdateStateOnDraw(bool did_request_swap); |
271 void UpdateStateOnManageTiles(); | 272 void UpdateStateOnManageTiles(); |
272 | 273 |
(...skipping 27 matching lines...) Expand all Loading... |
300 bool needs_manage_tiles_; | 301 bool needs_manage_tiles_; |
301 bool swap_used_incomplete_tile_; | 302 bool swap_used_incomplete_tile_; |
302 bool needs_commit_; | 303 bool needs_commit_; |
303 bool inside_poll_for_anticipated_draw_triggers_; | 304 bool inside_poll_for_anticipated_draw_triggers_; |
304 bool visible_; | 305 bool visible_; |
305 bool can_start_; | 306 bool can_start_; |
306 bool can_draw_; | 307 bool can_draw_; |
307 bool has_pending_tree_; | 308 bool has_pending_tree_; |
308 bool pending_tree_is_ready_for_activation_; | 309 bool pending_tree_is_ready_for_activation_; |
309 bool active_tree_needs_first_draw_; | 310 bool active_tree_needs_first_draw_; |
| 311 bool did_commit_after_animating_; |
310 bool did_create_and_initialize_first_output_surface_; | 312 bool did_create_and_initialize_first_output_surface_; |
311 bool impl_latency_takes_priority_; | 313 bool impl_latency_takes_priority_; |
312 bool skip_next_begin_main_frame_to_reduce_latency_; | 314 bool skip_next_begin_main_frame_to_reduce_latency_; |
313 bool skip_begin_main_frame_to_reduce_latency_; | 315 bool skip_begin_main_frame_to_reduce_latency_; |
314 bool continuous_painting_; | 316 bool continuous_painting_; |
315 | 317 |
316 private: | 318 private: |
317 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 319 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
318 }; | 320 }; |
319 | 321 |
320 } // namespace cc | 322 } // namespace cc |
321 | 323 |
322 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 324 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
OLD | NEW |