| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 bool ShouldBeginOutputSurfaceCreation() const; | 259 bool ShouldBeginOutputSurfaceCreation() const; |
| 260 bool ShouldDrawForced() const; | 260 bool ShouldDrawForced() const; |
| 261 bool ShouldDraw() const; | 261 bool ShouldDraw() const; |
| 262 bool ShouldActivatePendingTree() const; | 262 bool ShouldActivatePendingTree() const; |
| 263 bool ShouldUpdateVisibleTiles() const; | 263 bool ShouldUpdateVisibleTiles() const; |
| 264 bool ShouldSendBeginMainFrame() const; | 264 bool ShouldSendBeginMainFrame() const; |
| 265 bool ShouldCommit() const; | 265 bool ShouldCommit() const; |
| 266 bool ShouldManageTiles() const; | 266 bool ShouldManageTiles() const; |
| 267 | 267 |
| 268 void AdvanceCurrentFrameNumber(); | 268 void AdvanceCurrentFrameNumber(); |
| 269 bool HasAnimatedThisFrame() const; |
| 269 bool HasSentBeginMainFrameThisFrame() const; | 270 bool HasSentBeginMainFrameThisFrame() const; |
| 270 bool HasUpdatedVisibleTilesThisFrame() const; | 271 bool HasUpdatedVisibleTilesThisFrame() const; |
| 271 bool HasRequestedSwapThisFrame() const; | 272 bool HasRequestedSwapThisFrame() const; |
| 272 bool HasSwappedThisFrame() const; | 273 bool HasSwappedThisFrame() const; |
| 273 | 274 |
| 274 void UpdateStateOnCommit(bool commit_was_aborted); | 275 void UpdateStateOnCommit(bool commit_was_aborted); |
| 275 void UpdateStateOnActivation(); | 276 void UpdateStateOnActivation(); |
| 276 void UpdateStateOnDraw(bool did_request_swap); | 277 void UpdateStateOnDraw(bool did_request_swap); |
| 277 void UpdateStateOnManageTiles(); | 278 void UpdateStateOnManageTiles(); |
| 278 | 279 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 306 bool needs_manage_tiles_; | 307 bool needs_manage_tiles_; |
| 307 bool swap_used_incomplete_tile_; | 308 bool swap_used_incomplete_tile_; |
| 308 bool needs_commit_; | 309 bool needs_commit_; |
| 309 bool inside_poll_for_anticipated_draw_triggers_; | 310 bool inside_poll_for_anticipated_draw_triggers_; |
| 310 bool visible_; | 311 bool visible_; |
| 311 bool can_start_; | 312 bool can_start_; |
| 312 bool can_draw_; | 313 bool can_draw_; |
| 313 bool has_pending_tree_; | 314 bool has_pending_tree_; |
| 314 bool pending_tree_is_ready_for_activation_; | 315 bool pending_tree_is_ready_for_activation_; |
| 315 bool active_tree_needs_first_draw_; | 316 bool active_tree_needs_first_draw_; |
| 317 bool did_commit_after_animating_; |
| 316 bool did_create_and_initialize_first_output_surface_; | 318 bool did_create_and_initialize_first_output_surface_; |
| 317 bool impl_latency_takes_priority_; | 319 bool impl_latency_takes_priority_; |
| 318 bool skip_next_begin_main_frame_to_reduce_latency_; | 320 bool skip_next_begin_main_frame_to_reduce_latency_; |
| 319 bool skip_begin_main_frame_to_reduce_latency_; | 321 bool skip_begin_main_frame_to_reduce_latency_; |
| 320 bool continuous_painting_; | 322 bool continuous_painting_; |
| 321 bool impl_latency_takes_priority_on_battery_; | 323 bool impl_latency_takes_priority_on_battery_; |
| 322 | 324 |
| 323 private: | 325 private: |
| 324 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 326 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
| 325 }; | 327 }; |
| 326 | 328 |
| 327 } // namespace cc | 329 } // namespace cc |
| 328 | 330 |
| 329 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 331 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
| OLD | NEW |