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

Unified 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, 5 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/viz/service/display/surface_aggregator.h
diff --git a/components/viz/service/display/surface_aggregator.h b/components/viz/service/display/surface_aggregator.h
index 0a1fe63b3dbda47c4622d6f36268c4afe50d8a46..c084ffa969e6574c1e03d3f3053c0252ee00d74c 100644
--- a/components/viz/service/display/surface_aggregator.h
+++ b/components/viz/service/display/surface_aggregator.h
@@ -200,6 +200,10 @@ class VIZ_SERVICE_EXPORT SurfaceAggregator {
// should not have their damage rects clipped to the root damage rect.
base::flat_set<cc::RenderPassId> copy_request_passes_;
+ // This is the set of aggregated pass ids that has damage from contributing
+ // content.
+ base::flat_set<cc::RenderPassId> contributing_content_damaged_passes_;
+
// This maps each aggregated pass id to the set of (aggregated) pass ids
// that its cc::RenderPassDrawQuads depend on
base::flat_map<cc::RenderPassId, base::flat_set<cc::RenderPassId>>
@@ -212,6 +216,10 @@ class VIZ_SERVICE_EXPORT SurfaceAggregator {
// This is valid during Aggregate after PrewalkTree is called.
bool has_copy_requests_;
+ // True if the frame that's currently being aggregated has cached render
+ // passes. This is valid during Aggregate after PrewalkTree is called.
+ bool has_cached_render_passes_;
+
// Tracks UMA stats for SurfaceDrawQuads during a call to Aggregate().
SurfaceDrawQuadUmaStats uma_stats_;
« 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