OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SURFACES_DISPLAY_SCHEDULER_H_ | 5 #ifndef CC_SURFACES_DISPLAY_SCHEDULER_H_ |
6 #define CC_SURFACES_DISPLAY_SCHEDULER_H_ | 6 #define CC_SURFACES_DISPLAY_SCHEDULER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 DisplaySchedulerClient* client_; | 62 DisplaySchedulerClient* client_; |
63 BeginFrameSource* begin_frame_source_; | 63 BeginFrameSource* begin_frame_source_; |
64 base::SingleThreadTaskRunner* task_runner_; | 64 base::SingleThreadTaskRunner* task_runner_; |
65 | 65 |
66 BeginFrameArgs current_begin_frame_args_; | 66 BeginFrameArgs current_begin_frame_args_; |
67 base::Closure begin_frame_deadline_closure_; | 67 base::Closure begin_frame_deadline_closure_; |
68 base::CancelableClosure begin_frame_deadline_task_; | 68 base::CancelableClosure begin_frame_deadline_task_; |
69 base::TimeTicks begin_frame_deadline_task_time_; | 69 base::TimeTicks begin_frame_deadline_task_time_; |
70 | 70 |
| 71 base::CancelableClosure missed_begin_frame_task_; |
| 72 bool inside_surface_damaged_; |
| 73 |
71 bool output_surface_lost_; | 74 bool output_surface_lost_; |
72 bool root_surface_resources_locked_; | 75 bool root_surface_resources_locked_; |
73 | 76 |
74 bool inside_begin_frame_deadline_interval_; | 77 bool inside_begin_frame_deadline_interval_; |
75 bool needs_draw_; | 78 bool needs_draw_; |
76 bool expecting_root_surface_damage_because_of_resize_; | 79 bool expecting_root_surface_damage_because_of_resize_; |
77 bool all_active_child_surfaces_ready_to_draw_; | 80 bool all_active_child_surfaces_ready_to_draw_; |
78 | 81 |
79 int pending_swaps_; | 82 int pending_swaps_; |
80 int max_pending_swaps_; | 83 int max_pending_swaps_; |
(...skipping 10 matching lines...) Expand all Loading... |
91 | 94 |
92 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_; | 95 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_; |
93 | 96 |
94 private: | 97 private: |
95 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler); | 98 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler); |
96 }; | 99 }; |
97 | 100 |
98 } // namespace cc | 101 } // namespace cc |
99 | 102 |
100 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_ | 103 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_ |
OLD | NEW |