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

Unified Diff: cc/ipc/surface_sequence_struct_traits.h

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 3 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/surface_sequence.mojom ('k') | cc/ipc/typemaps.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/surface_sequence_struct_traits.h
diff --git a/cc/ipc/surface_sequence_struct_traits.h b/cc/ipc/surface_sequence_struct_traits.h
index e38b75593b657889b38e96d81cd22227d2af1cfc..0ad458789bd5fe704b2a5fd03ec1f2c42bdd7eeb 100644
--- a/cc/ipc/surface_sequence_struct_traits.h
+++ b/cc/ipc/surface_sequence_struct_traits.h
@@ -12,8 +12,8 @@ namespace mojo {
template <>
struct StructTraits<cc::mojom::SurfaceSequenceDataView, cc::SurfaceSequence> {
- static uint32_t client_id(const cc::SurfaceSequence& id) {
- return id.client_id;
+ static const cc::FrameSinkId& frame_sink_id(const cc::SurfaceSequence& id) {
+ return id.frame_sink_id;
}
static uint32_t sequence(const cc::SurfaceSequence& id) {
@@ -22,7 +22,10 @@ struct StructTraits<cc::mojom::SurfaceSequenceDataView, cc::SurfaceSequence> {
static bool Read(cc::mojom::SurfaceSequenceDataView data,
cc::SurfaceSequence* out) {
- *out = cc::SurfaceSequence(data.client_id(), data.sequence());
+ cc::FrameSinkId frame_sink_id;
+ if (!data.ReadFrameSinkId(&frame_sink_id))
+ return false;
+ *out = cc::SurfaceSequence(frame_sink_id, data.sequence());
return true;
}
};
« no previous file with comments | « cc/ipc/surface_sequence.mojom ('k') | cc/ipc/typemaps.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698