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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 } | 244 } |
245 | 245 |
246 void DidPrepareTiles(); | 246 void DidPrepareTiles(); |
247 void DidLoseOutputSurface(); | 247 void DidLoseOutputSurface(); |
248 void DidCreateAndInitializeOutputSurface(); | 248 void DidCreateAndInitializeOutputSurface(); |
249 bool HasInitializedOutputSurface() const; | 249 bool HasInitializedOutputSurface() const; |
250 | 250 |
251 // True if we need to abort draws to make forward progress. | 251 // True if we need to abort draws to make forward progress. |
252 bool PendingDrawsShouldBeAborted() const; | 252 bool PendingDrawsShouldBeAborted() const; |
253 | 253 |
254 void SetContinuousPainting(bool continuous_painting) { | |
255 continuous_painting_ = continuous_painting; | |
256 } | |
257 | |
258 bool CouldSendBeginMainFrame() const; | 254 bool CouldSendBeginMainFrame() const; |
259 | 255 |
260 void SetDeferCommits(bool defer_commits); | 256 void SetDeferCommits(bool defer_commits); |
261 | 257 |
262 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); | 258 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); |
263 bool children_need_begin_frames() const { | 259 bool children_need_begin_frames() const { |
264 return children_need_begin_frames_; | 260 return children_need_begin_frames_; |
265 } | 261 } |
266 | 262 |
267 void SetVideoNeedsBeginFrames(bool video_needs_begin_frames); | 263 void SetVideoNeedsBeginFrames(bool video_needs_begin_frames); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 bool visible_; | 326 bool visible_; |
331 bool can_start_; | 327 bool can_start_; |
332 bool can_draw_; | 328 bool can_draw_; |
333 bool has_pending_tree_; | 329 bool has_pending_tree_; |
334 bool pending_tree_is_ready_for_activation_; | 330 bool pending_tree_is_ready_for_activation_; |
335 bool active_tree_needs_first_draw_; | 331 bool active_tree_needs_first_draw_; |
336 bool did_create_and_initialize_first_output_surface_; | 332 bool did_create_and_initialize_first_output_surface_; |
337 bool impl_latency_takes_priority_; | 333 bool impl_latency_takes_priority_; |
338 bool main_thread_missed_last_deadline_; | 334 bool main_thread_missed_last_deadline_; |
339 bool skip_next_begin_main_frame_to_reduce_latency_; | 335 bool skip_next_begin_main_frame_to_reduce_latency_; |
340 bool continuous_painting_; | |
341 bool children_need_begin_frames_; | 336 bool children_need_begin_frames_; |
342 bool defer_commits_; | 337 bool defer_commits_; |
343 bool video_needs_begin_frames_; | 338 bool video_needs_begin_frames_; |
344 bool last_commit_had_no_updates_; | 339 bool last_commit_had_no_updates_; |
345 bool wait_for_ready_to_draw_; | 340 bool wait_for_ready_to_draw_; |
346 bool did_request_swap_in_last_frame_; | 341 bool did_request_swap_in_last_frame_; |
347 bool did_perform_swap_in_last_draw_; | 342 bool did_perform_swap_in_last_draw_; |
348 | 343 |
349 private: | 344 private: |
350 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 345 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
351 }; | 346 }; |
352 | 347 |
353 } // namespace cc | 348 } // namespace cc |
354 | 349 |
355 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 350 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
OLD | NEW |