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

Unified Diff: cc/output/compositor_frame_metadata.h

Issue 2707243005: Discard compositor frames from unloaded web content (Closed)
Patch Set: Improved comments Created 3 years, 10 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
Index: cc/output/compositor_frame_metadata.h
diff --git a/cc/output/compositor_frame_metadata.h b/cc/output/compositor_frame_metadata.h
index e383e5069dcd82c0f9c4a044fd4f38d6eabc4969..59023b4341b890e6d695dff54424be5e3a1d30d6 100644
--- a/cc/output/compositor_frame_metadata.h
+++ b/cc/output/compositor_frame_metadata.h
@@ -82,6 +82,12 @@ class CC_EXPORT CompositorFrameMetadata {
// dependencies have been resolved.
bool can_activate_before_dependencies = true;
+ // This is a value that allows the browser to associate compositor frames
+ // with the content that they represent -- typically top-level page loads.
+ // TODO(kenrb, fsamuel): This should eventually by SurfaceID, when they
+ // become available in all renderer processes. See https://crbug.com/695579.
+ uint32_t content_source_id;
+
private:
CompositorFrameMetadata(const CompositorFrameMetadata& other);
CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete;

Powered by Google App Engine
This is Rietveld 408576698