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

Unified Diff: cc/ipc/compositor_frame_metadata_struct_traits.h

Issue 2707243005: Discard compositor frames from unloaded web content (Closed)
Patch Set: Add default value for source ID in frame metadata Created 3 years, 9 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/ipc/compositor_frame_metadata.mojom ('k') | cc/ipc/compositor_frame_metadata_struct_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/compositor_frame_metadata_struct_traits.h
diff --git a/cc/ipc/compositor_frame_metadata_struct_traits.h b/cc/ipc/compositor_frame_metadata_struct_traits.h
index 381edb3f45cdacd533a48d382940adfc1203f69c..c58ba45b4b2cdbf6ee0d2f966cf8b3c7ca80a069 100644
--- a/cc/ipc/compositor_frame_metadata_struct_traits.h
+++ b/cc/ipc/compositor_frame_metadata_struct_traits.h
@@ -111,6 +111,11 @@ struct StructTraits<cc::mojom::CompositorFrameMetadataDataView,
return metadata.can_activate_before_dependencies;
}
+ static uint32_t content_source_id(
+ const cc::CompositorFrameMetadata& metadata) {
+ return metadata.content_source_id;
+ }
+
static bool Read(cc::mojom::CompositorFrameMetadataDataView data,
cc::CompositorFrameMetadata* out);
};
« no previous file with comments | « cc/ipc/compositor_frame_metadata.mojom ('k') | cc/ipc/compositor_frame_metadata_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698