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

Unified Diff: cc/output/compositor_frame_metadata.h

Issue 2803913004: cc: Introduce embedded_surfaces in metadata for surface Ids in draw quads (Closed)
Patch Set: Addressed Dana's comments Created 3 years, 8 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/layers/surface_layer_impl_unittest.cc ('k') | cc/surfaces/compositor_frame_sink_support_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/compositor_frame_metadata.h
diff --git a/cc/output/compositor_frame_metadata.h b/cc/output/compositor_frame_metadata.h
index 98bed560715476f4dc71382cdc383574ba08b86b..a3ebfc26483ea2f7a2382114e1db2dfc243622c9 100644
--- a/cc/output/compositor_frame_metadata.h
+++ b/cc/output/compositor_frame_metadata.h
@@ -77,8 +77,17 @@ class CC_EXPORT CompositorFrameMetadata {
std::vector<ui::LatencyInfo> latency_info;
// This is the set of Surfaces that are referenced by this frame.
+ // Note: this includes occluded and clipped surfaces and surfaces that may
+ // be accessed by this CompositorFrame in the future.
+ // TODO(fsamuel): In the future, a generalized frame eviction system will
+ // determine which surfaces to retain and which to evict. It will likely
+ // be unnecessary for the embedder to explicitly specify which surfaces to
+ // retain. Thus, this field will likely go away.
std::vector<SurfaceId> referenced_surfaces;
+ // This is the set of SurfaceIds embedded in DrawQuads.
+ std::vector<SurfaceId> embedded_surfaces;
+
// This indicates whether this CompositorFrame can be activated before
// dependencies have been resolved.
bool can_activate_before_dependencies = true;
« no previous file with comments | « cc/layers/surface_layer_impl_unittest.cc ('k') | cc/surfaces/compositor_frame_sink_support_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698