| 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 CC_SURFACES_SURFACE_AGGREGATOR_H_ | 5 #ifndef CC_SURFACES_SURFACE_AGGREGATOR_H_ |
| 6 #define CC_SURFACES_SURFACE_AGGREGATOR_H_ | 6 #define CC_SURFACES_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 // that its RenderPassDrawQuads depend on | 193 // that its RenderPassDrawQuads depend on |
| 194 base::flat_map<int, base::flat_set<int>> render_pass_dependencies_; | 194 base::flat_map<int, base::flat_set<int>> render_pass_dependencies_; |
| 195 | 195 |
| 196 // The root damage rect of the currently-aggregating frame. | 196 // The root damage rect of the currently-aggregating frame. |
| 197 gfx::Rect root_damage_rect_; | 197 gfx::Rect root_damage_rect_; |
| 198 | 198 |
| 199 // True if the frame that's currently being aggregated has copy requests. | 199 // True if the frame that's currently being aggregated has copy requests. |
| 200 // This is valid during Aggregate after PrewalkTree is called. | 200 // This is valid during Aggregate after PrewalkTree is called. |
| 201 bool has_copy_requests_; | 201 bool has_copy_requests_; |
| 202 | 202 |
| 203 // Resource list for the aggregated frame. | |
| 204 TransferableResourceArray* dest_resource_list_; | |
| 205 | |
| 206 // Tracks UMA stats for SurfaceDrawQuads during a call to Aggregate(). | 203 // Tracks UMA stats for SurfaceDrawQuads during a call to Aggregate(). |
| 207 SurfaceDrawQuadUmaStats uma_stats_; | 204 SurfaceDrawQuadUmaStats uma_stats_; |
| 208 | 205 |
| 209 base::WeakPtrFactory<SurfaceAggregator> weak_factory_; | 206 base::WeakPtrFactory<SurfaceAggregator> weak_factory_; |
| 210 | 207 |
| 211 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); | 208 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); |
| 212 }; | 209 }; |
| 213 | 210 |
| 214 } // namespace cc | 211 } // namespace cc |
| 215 | 212 |
| 216 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ | 213 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ |
| OLD | NEW |