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

Side by Side Diff: cc/ipc/cc_param_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/OWNERS ('k') | cc/ipc/cc_param_traits.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // IPC Messages sent between compositor instances. 5 // IPC Messages sent between compositor instances.
6 6
7 #ifndef CC_IPC_CC_PARAM_TRAITS_H_ 7 #ifndef CC_IPC_CC_PARAM_TRAITS_H_
8 #define CC_IPC_CC_PARAM_TRAITS_H_ 8 #define CC_IPC_CC_PARAM_TRAITS_H_
9 9
10 #include "cc/ipc/cc_ipc_export.h" 10 #include "cc/ipc/cc_ipc_export.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 typedef cc::FrameSinkId param_type; 71 typedef cc::FrameSinkId param_type;
72 static void GetSize(base::PickleSizer* s, const param_type& p); 72 static void GetSize(base::PickleSizer* s, const param_type& p);
73 static void Write(base::Pickle* m, const param_type& p); 73 static void Write(base::Pickle* m, const param_type& p);
74 static bool Read(const base::Pickle* m, 74 static bool Read(const base::Pickle* m,
75 base::PickleIterator* iter, 75 base::PickleIterator* iter,
76 param_type* r); 76 param_type* r);
77 static void Log(const param_type& p, std::string* l); 77 static void Log(const param_type& p, std::string* l);
78 }; 78 };
79 79
80 template <> 80 template <>
81 struct CC_IPC_EXPORT ParamTraits<cc::LocalFrameId> { 81 struct CC_IPC_EXPORT ParamTraits<cc::LocalSurfaceId> {
82 typedef cc::LocalFrameId param_type; 82 typedef cc::LocalSurfaceId param_type;
83 static void GetSize(base::PickleSizer* s, const param_type& p); 83 static void GetSize(base::PickleSizer* s, const param_type& p);
84 static void Write(base::Pickle* m, const param_type& p); 84 static void Write(base::Pickle* m, const param_type& p);
85 static bool Read(const base::Pickle* m, 85 static bool Read(const base::Pickle* m,
86 base::PickleIterator* iter, 86 base::PickleIterator* iter,
87 param_type* r); 87 param_type* r);
88 static void Log(const param_type& p, std::string* l); 88 static void Log(const param_type& p, std::string* l);
89 }; 89 };
90 90
91 template <> 91 template <>
92 struct CC_IPC_EXPORT ParamTraits<cc::SurfaceId> { 92 struct CC_IPC_EXPORT ParamTraits<cc::SurfaceId> {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 static void Write(base::Pickle* m, const param_type& p); 149 static void Write(base::Pickle* m, const param_type& p);
150 static bool Read(const base::Pickle* m, 150 static bool Read(const base::Pickle* m,
151 base::PickleIterator* iter, 151 base::PickleIterator* iter,
152 param_type* p); 152 param_type* p);
153 static void Log(const param_type& p, std::string* l); 153 static void Log(const param_type& p, std::string* l);
154 }; 154 };
155 155
156 } // namespace IPC 156 } // namespace IPC
157 157
158 #endif // CC_IPC_CC_PARAM_TRAITS_H_ 158 #endif // CC_IPC_CC_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « cc/ipc/OWNERS ('k') | cc/ipc/cc_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698