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

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

Issue 2503203002: Revert "Getting rid of DelegatedFrameData" (Closed)
Patch Set: Created 4 years, 1 month 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/BUILD.gn ('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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 struct CC_IPC_EXPORT ParamTraits<cc::CompositorFrame> { 107 struct CC_IPC_EXPORT ParamTraits<cc::CompositorFrame> {
108 typedef cc::CompositorFrame param_type; 108 typedef cc::CompositorFrame param_type;
109 static void Write(base::Pickle* m, const param_type& p); 109 static void Write(base::Pickle* m, const param_type& p);
110 static bool Read(const base::Pickle* m, 110 static bool Read(const base::Pickle* m,
111 base::PickleIterator* iter, 111 base::PickleIterator* iter,
112 param_type* p); 112 param_type* p);
113 static void Log(const param_type& p, std::string* l); 113 static void Log(const param_type& p, std::string* l);
114 }; 114 };
115 115
116 template <> 116 template <>
117 struct CC_IPC_EXPORT ParamTraits<cc::DelegatedFrameData> {
118 typedef cc::DelegatedFrameData param_type;
119 static void Write(base::Pickle* m, const param_type& p);
120 static bool Read(const base::Pickle* m,
121 base::PickleIterator* iter,
122 param_type* p);
123 static void Log(const param_type& p, std::string* l);
124 };
125
126 template <>
117 struct CC_IPC_EXPORT ParamTraits<cc::DrawQuad::Resources> { 127 struct CC_IPC_EXPORT ParamTraits<cc::DrawQuad::Resources> {
118 typedef cc::DrawQuad::Resources param_type; 128 typedef cc::DrawQuad::Resources param_type;
119 static void GetSize(base::PickleSizer* s, const param_type& p); 129 static void GetSize(base::PickleSizer* s, const param_type& p);
120 static void Write(base::Pickle* m, const param_type& p); 130 static void Write(base::Pickle* m, const param_type& p);
121 static bool Read(const base::Pickle* m, 131 static bool Read(const base::Pickle* m,
122 base::PickleIterator* iter, 132 base::PickleIterator* iter,
123 param_type* p); 133 param_type* p);
124 static void Log(const param_type& p, std::string* l); 134 static void Log(const param_type& p, std::string* l);
125 }; 135 };
126 136
(...skipping 26 matching lines...) Expand all
153 static void Write(base::Pickle* m, const param_type& p); 163 static void Write(base::Pickle* m, const param_type& p);
154 static bool Read(const base::Pickle* m, 164 static bool Read(const base::Pickle* m,
155 base::PickleIterator* iter, 165 base::PickleIterator* iter,
156 param_type* p); 166 param_type* p);
157 static void Log(const param_type& p, std::string* l); 167 static void Log(const param_type& p, std::string* l);
158 }; 168 };
159 169
160 } // namespace IPC 170 } // namespace IPC
161 171
162 #endif // CC_IPC_CC_PARAM_TRAITS_H_ 172 #endif // CC_IPC_CC_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « cc/BUILD.gn ('k') | cc/ipc/cc_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698