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

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

Issue 2661543002: Rename LocalFrameId to LocalSurfaceId (Closed)
Patch Set: c 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 unified diff | Download patch
« no previous file with comments | « cc/ipc/surface_id.mojom ('k') | cc/ipc/typemaps.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_IPC_SURFACE_ID_STRUCT_TRAITS_H_ 5 #ifndef CC_IPC_SURFACE_ID_STRUCT_TRAITS_H_
6 #define CC_IPC_SURFACE_ID_STRUCT_TRAITS_H_ 6 #define CC_IPC_SURFACE_ID_STRUCT_TRAITS_H_
7 7
8 #include "cc/ipc/frame_sink_id_struct_traits.h" 8 #include "cc/ipc/frame_sink_id_struct_traits.h"
9 #include "cc/ipc/local_frame_id_struct_traits.h" 9 #include "cc/ipc/local_surface_id_struct_traits.h"
10 #include "cc/ipc/surface_id.mojom-shared.h" 10 #include "cc/ipc/surface_id.mojom-shared.h"
11 #include "cc/surfaces/frame_sink_id.h" 11 #include "cc/surfaces/frame_sink_id.h"
12 #include "cc/surfaces/local_frame_id.h" 12 #include "cc/surfaces/local_surface_id.h"
13 #include "cc/surfaces/surface_id.h" 13 #include "cc/surfaces/surface_id.h"
14 14
15 namespace mojo { 15 namespace mojo {
16 16
17 template <> 17 template <>
18 struct StructTraits<cc::mojom::SurfaceIdDataView, cc::SurfaceId> { 18 struct StructTraits<cc::mojom::SurfaceIdDataView, cc::SurfaceId> {
19 static const cc::FrameSinkId& frame_sink_id(const cc::SurfaceId& id) { 19 static const cc::FrameSinkId& frame_sink_id(const cc::SurfaceId& id) {
20 return id.frame_sink_id(); 20 return id.frame_sink_id();
21 } 21 }
22 22
23 static const cc::LocalFrameId& local_frame_id(const cc::SurfaceId& id) { 23 static const cc::LocalSurfaceId& local_surface_id(const cc::SurfaceId& id) {
24 return id.local_frame_id(); 24 return id.local_surface_id();
25 } 25 }
26 26
27 static bool Read(cc::mojom::SurfaceIdDataView data, cc::SurfaceId* out) { 27 static bool Read(cc::mojom::SurfaceIdDataView data, cc::SurfaceId* out) {
28 return data.ReadFrameSinkId(&out->frame_sink_id_) && 28 return data.ReadFrameSinkId(&out->frame_sink_id_) &&
29 data.ReadLocalFrameId(&out->local_frame_id_); 29 data.ReadLocalSurfaceId(&out->local_surface_id_);
30 } 30 }
31 }; 31 };
32 32
33 } // namespace mojo 33 } // namespace mojo
34 34
35 #endif // CC_IPC_SURFACE_ID_STRUCT_TRAITS_H_ 35 #endif // CC_IPC_SURFACE_ID_STRUCT_TRAITS_H_
OLDNEW
« no previous file with comments | « cc/ipc/surface_id.mojom ('k') | cc/ipc/typemaps.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698