| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 bool did_submit_in_last_frame() const { return did_submit_in_last_frame_; } | 283 bool did_submit_in_last_frame() const { return did_submit_in_last_frame_; } |
| 284 | 284 |
| 285 bool needs_impl_side_invalidation() const { | 285 bool needs_impl_side_invalidation() const { |
| 286 return needs_impl_side_invalidation_; | 286 return needs_impl_side_invalidation_; |
| 287 } | 287 } |
| 288 bool previous_pending_tree_was_impl_side() const { | 288 bool previous_pending_tree_was_impl_side() const { |
| 289 return previous_pending_tree_was_impl_side_; | 289 return previous_pending_tree_was_impl_side_; |
| 290 } | 290 } |
| 291 | 291 |
| 292 uint32_t begin_frame_source_id() const { return begin_frame_source_id_; } | 292 uint32_t begin_frame_source_id() const { return begin_frame_source_id_; } |
| 293 uint64_t last_begin_frame_sequence_number_active_tree_was_fresh() const { |
| 294 return last_begin_frame_sequence_number_active_tree_was_fresh_; |
| 295 } |
| 293 uint64_t last_begin_frame_sequence_number_compositor_frame_was_fresh() const { | 296 uint64_t last_begin_frame_sequence_number_compositor_frame_was_fresh() const { |
| 294 return last_begin_frame_sequence_number_compositor_frame_was_fresh_; | 297 return last_begin_frame_sequence_number_compositor_frame_was_fresh_; |
| 295 } | 298 } |
| 296 | 299 |
| 297 protected: | 300 protected: |
| 298 bool BeginFrameRequiredForAction() const; | 301 bool BeginFrameRequiredForAction() const; |
| 299 bool BeginFrameNeededForVideo() const; | 302 bool BeginFrameNeededForVideo() const; |
| 300 bool ProactiveBeginFrameWanted() const; | 303 bool ProactiveBeginFrameWanted() const; |
| 301 | 304 |
| 302 bool ShouldPerformImplSideInvalidation() const; | 305 bool ShouldPerformImplSideInvalidation() const; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 bool previous_pending_tree_was_impl_side_; | 396 bool previous_pending_tree_was_impl_side_; |
| 394 bool current_pending_tree_is_impl_side_; | 397 bool current_pending_tree_is_impl_side_; |
| 395 | 398 |
| 396 private: | 399 private: |
| 397 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 400 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
| 398 }; | 401 }; |
| 399 | 402 |
| 400 } // namespace cc | 403 } // namespace cc |
| 401 | 404 |
| 402 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 405 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
| OLD | NEW |