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

Side by Side Diff: components/viz/service/display/surface_aggregator.h

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Rebased to resolve conflict. Created 3 years, 4 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 | « cc/trees/property_tree_builder.cc ('k') | components/viz/service/display/surface_aggregator.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 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
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_
OLDNEW
« no previous file with comments | « cc/trees/property_tree_builder.cc ('k') | components/viz/service/display/surface_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698