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

Side by Side Diff: cc/ipc/frame_sink_id_struct_traits.h

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « cc/ipc/frame_sink_id.typemap ('k') | cc/ipc/surface_id.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_IPC_FRAME_SINK_ID_STRUCT_TRAITS_H_
6 #define CC_IPC_FRAME_SINK_ID_STRUCT_TRAITS_H_
7
8 #include "cc/ipc/frame_sink_id.mojom-shared.h"
9 #include "cc/surfaces/frame_sink_id.h"
10
11 namespace mojo {
12
13 template <>
14 struct StructTraits<cc::mojom::FrameSinkIdDataView, cc::FrameSinkId> {
15 static uint32_t client_id(const cc::FrameSinkId& frame_sink_id) {
16 return frame_sink_id.client_id();
17 }
18
19 static uint32_t sink_id(const cc::FrameSinkId& frame_sink_id) {
20 return frame_sink_id.sink_id();
21 }
22
23 static bool Read(cc::mojom::FrameSinkIdDataView data, cc::FrameSinkId* out) {
24 *out = cc::FrameSinkId(data.client_id(), data.sink_id());
25 return true;
26 }
27 };
28
29 } // namespace mojo
30
31 #endif // CC_IPC_FRAME_SINK_ID_STRUCT_TRAITS_H_
OLDNEW
« no previous file with comments | « cc/ipc/frame_sink_id.typemap ('k') | cc/ipc/surface_id.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698