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