Chromium Code Reviews| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 | 77 |
| 78 bool visible_; | 78 bool visible_; |
| 79 bool output_surface_lost_; | 79 bool output_surface_lost_; |
| 80 bool root_surface_resources_locked_; | 80 bool root_surface_resources_locked_; |
| 81 | 81 |
| 82 bool inside_begin_frame_deadline_interval_; | 82 bool inside_begin_frame_deadline_interval_; |
| 83 bool needs_draw_; | 83 bool needs_draw_; |
| 84 bool expecting_root_surface_damage_because_of_resize_; | 84 bool expecting_root_surface_damage_because_of_resize_; |
| 85 bool all_active_child_surfaces_ready_to_draw_; | 85 bool all_active_child_surfaces_ready_to_draw_; |
| 86 | 86 |
| 87 int next_async_swap_id_; | |
|
reveman
2017/03/27 16:03:52
nit: not sure we should have the "async" prefix he
Daniele Castagna
2017/03/27 16:08:39
Done.
| |
| 87 int pending_swaps_; | 88 int pending_swaps_; |
| 88 int max_pending_swaps_; | 89 int max_pending_swaps_; |
| 89 | 90 |
| 90 bool observing_begin_frame_source_; | 91 bool observing_begin_frame_source_; |
| 91 | 92 |
| 92 SurfaceId root_surface_id_; | 93 SurfaceId root_surface_id_; |
| 93 bool root_surface_damaged_; | 94 bool root_surface_damaged_; |
| 94 bool expect_damage_from_root_surface_; | 95 bool expect_damage_from_root_surface_; |
| 95 | 96 |
| 96 std::set<SurfaceId> child_surface_ids_damaged_; | 97 std::set<SurfaceId> child_surface_ids_damaged_; |
| 97 std::set<SurfaceId> child_surface_ids_damaged_prev_; | 98 std::set<SurfaceId> child_surface_ids_damaged_prev_; |
| 98 std::vector<SurfaceId> child_surface_ids_to_expect_damage_from_; | 99 std::vector<SurfaceId> child_surface_ids_to_expect_damage_from_; |
| 99 | 100 |
| 100 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_; | 101 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_; |
| 101 | 102 |
| 102 private: | 103 private: |
| 103 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler); | 104 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace cc | 107 } // namespace cc |
| 107 | 108 |
| 108 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_ | 109 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_ |
| OLD | NEW |