OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_VIZ_SERVICE_DISPLAY_SURFACE_AGGREGATOR_H_ | 5 #ifndef COMPONENTS_VIZ_SERVICE_DISPLAY_SURFACE_AGGREGATOR_H_ |
6 #define COMPONENTS_VIZ_SERVICE_DISPLAY_SURFACE_AGGREGATOR_H_ | 6 #define COMPONENTS_VIZ_SERVICE_DISPLAY_SURFACE_AGGREGATOR_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <unordered_map> | 9 #include <unordered_map> |
10 | 10 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 cc::RenderPassList* dest_pass_list_; | 193 cc::RenderPassList* dest_pass_list_; |
194 | 194 |
195 // This is the set of aggregated pass ids that are affected by filters that | 195 // This is the set of aggregated pass ids that are affected by filters that |
196 // move pixels. | 196 // move pixels. |
197 base::flat_set<cc::RenderPassId> moved_pixel_passes_; | 197 base::flat_set<cc::RenderPassId> moved_pixel_passes_; |
198 | 198 |
199 // This is the set of aggregated pass ids that are drawn by copy requests, so | 199 // This is the set of aggregated pass ids that are drawn by copy requests, so |
200 // should not have their damage rects clipped to the root damage rect. | 200 // should not have their damage rects clipped to the root damage rect. |
201 base::flat_set<cc::RenderPassId> copy_request_passes_; | 201 base::flat_set<cc::RenderPassId> copy_request_passes_; |
202 | 202 |
| 203 // This is the set of aggregated pass ids that has damage from contributing |
| 204 // content. |
| 205 base::flat_set<cc::RenderPassId> contributing_content_damaged_passes_; |
| 206 |
203 // This maps each aggregated pass id to the set of (aggregated) pass ids | 207 // This maps each aggregated pass id to the set of (aggregated) pass ids |
204 // that its cc::RenderPassDrawQuads depend on | 208 // that its cc::RenderPassDrawQuads depend on |
205 base::flat_map<cc::RenderPassId, base::flat_set<cc::RenderPassId>> | 209 base::flat_map<cc::RenderPassId, base::flat_set<cc::RenderPassId>> |
206 render_pass_dependencies_; | 210 render_pass_dependencies_; |
207 | 211 |
208 // The root damage rect of the currently-aggregating frame. | 212 // The root damage rect of the currently-aggregating frame. |
209 gfx::Rect root_damage_rect_; | 213 gfx::Rect root_damage_rect_; |
210 | 214 |
211 // True if the frame that's currently being aggregated has copy requests. | 215 // True if the frame that's currently being aggregated has copy requests. |
212 // This is valid during Aggregate after PrewalkTree is called. | 216 // This is valid during Aggregate after PrewalkTree is called. |
213 bool has_copy_requests_; | 217 bool has_copy_requests_; |
214 | 218 |
| 219 // True if the frame that's currently being aggregated has cached render |
| 220 // passes. This is valid during Aggregate after PrewalkTree is called. |
| 221 bool has_cached_render_passes_; |
| 222 |
215 // Tracks UMA stats for SurfaceDrawQuads during a call to Aggregate(). | 223 // Tracks UMA stats for SurfaceDrawQuads during a call to Aggregate(). |
216 SurfaceDrawQuadUmaStats uma_stats_; | 224 SurfaceDrawQuadUmaStats uma_stats_; |
217 | 225 |
218 base::WeakPtrFactory<SurfaceAggregator> weak_factory_; | 226 base::WeakPtrFactory<SurfaceAggregator> weak_factory_; |
219 | 227 |
220 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); | 228 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); |
221 }; | 229 }; |
222 | 230 |
223 } // namespace viz | 231 } // namespace viz |
224 | 232 |
225 #endif // COMPONENTS_VIZ_SERVICE_DISPLAY_SURFACE_AGGREGATOR_H_ | 233 #endif // COMPONENTS_VIZ_SERVICE_DISPLAY_SURFACE_AGGREGATOR_H_ |
OLD | NEW |