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