Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: cc/surfaces/display_scheduler.h

Issue 2772343002: cc: Fix DisplayScheduler:pending_swaps tracing. (Closed)
Patch Set: Remove aysnc. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/surfaces/display_scheduler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_swap_id_;
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_
OLDNEW
« no previous file with comments | « no previous file | cc/surfaces/display_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698