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

Side by Side Diff: content/common/cc_messages.h

Issue 1966983003: Generate param traits size methods for IPC files in content/ (and traits it depends on). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix owners Created 4 years, 7 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 | « base/pickle.cc ('k') | content/common/cc_messages.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 #include "cc/output/begin_frame_args.h" 7 #include "cc/output/begin_frame_args.h"
8 #include "cc/output/compositor_frame.h" 8 #include "cc/output/compositor_frame.h"
9 #include "cc/output/compositor_frame_ack.h" 9 #include "cc/output/compositor_frame_ack.h"
10 #include "cc/output/filter_operation.h" 10 #include "cc/output/filter_operation.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 namespace cc { 43 namespace cc {
44 class FilterOperations; 44 class FilterOperations;
45 } 45 }
46 46
47 namespace IPC { 47 namespace IPC {
48 48
49 template <> 49 template <>
50 struct ParamTraits<cc::FilterOperation> { 50 struct ParamTraits<cc::FilterOperation> {
51 typedef cc::FilterOperation param_type; 51 typedef cc::FilterOperation param_type;
52 static void GetSize(base::PickleSizer* s, const param_type& p);
52 static void Write(base::Pickle* m, const param_type& p); 53 static void Write(base::Pickle* m, const param_type& p);
53 static bool Read(const base::Pickle* m, 54 static bool Read(const base::Pickle* m,
54 base::PickleIterator* iter, 55 base::PickleIterator* iter,
55 param_type* r); 56 param_type* r);
56 static void Log(const param_type& p, std::string* l); 57 static void Log(const param_type& p, std::string* l);
57 }; 58 };
58 59
59 template <> 60 template <>
60 struct ParamTraits<cc::FilterOperations> { 61 struct ParamTraits<cc::FilterOperations> {
61 typedef cc::FilterOperations param_type; 62 typedef cc::FilterOperations param_type;
63 static void GetSize(base::PickleSizer* s, const param_type& p);
62 static void Write(base::Pickle* m, const param_type& p); 64 static void Write(base::Pickle* m, const param_type& p);
63 static bool Read(const base::Pickle* m, 65 static bool Read(const base::Pickle* m,
64 base::PickleIterator* iter, 66 base::PickleIterator* iter,
65 param_type* r); 67 param_type* r);
66 static void Log(const param_type& p, std::string* l); 68 static void Log(const param_type& p, std::string* l);
67 }; 69 };
68 70
69 template <> 71 template <>
70 struct ParamTraits<sk_sp<SkImageFilter> > { 72 struct ParamTraits<sk_sp<SkImageFilter> > {
71 typedef sk_sp<SkImageFilter> param_type; 73 typedef sk_sp<SkImageFilter> param_type;
74 static void GetSize(base::PickleSizer* s, const param_type& p);
72 static void Write(base::Pickle* m, const param_type& p); 75 static void Write(base::Pickle* m, const param_type& p);
73 static bool Read(const base::Pickle* m, 76 static bool Read(const base::Pickle* m,
74 base::PickleIterator* iter, 77 base::PickleIterator* iter,
75 param_type* r); 78 param_type* r);
76 static void Log(const param_type& p, std::string* l); 79 static void Log(const param_type& p, std::string* l);
77 }; 80 };
78 81
79 template <> 82 template <>
80 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> { 83 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> {
81 typedef cc::RenderPass param_type; 84 typedef cc::RenderPass param_type;
(...skipping 30 matching lines...) Expand all
112 static void Write(base::Pickle* m, const param_type& p); 115 static void Write(base::Pickle* m, const param_type& p);
113 static bool Read(const base::Pickle* m, 116 static bool Read(const base::Pickle* m,
114 base::PickleIterator* iter, 117 base::PickleIterator* iter,
115 param_type* p); 118 param_type* p);
116 static void Log(const param_type& p, std::string* l); 119 static void Log(const param_type& p, std::string* l);
117 }; 120 };
118 121
119 template <> 122 template <>
120 struct CONTENT_EXPORT ParamTraits<cc::DrawQuad::Resources> { 123 struct CONTENT_EXPORT ParamTraits<cc::DrawQuad::Resources> {
121 typedef cc::DrawQuad::Resources param_type; 124 typedef cc::DrawQuad::Resources param_type;
125 static void GetSize(base::PickleSizer* s, const param_type& p);
122 static void Write(base::Pickle* m, const param_type& p); 126 static void Write(base::Pickle* m, const param_type& p);
123 static bool Read(const base::Pickle* m, 127 static bool Read(const base::Pickle* m,
124 base::PickleIterator* iter, 128 base::PickleIterator* iter,
125 param_type* p); 129 param_type* p);
126 static void Log(const param_type& p, std::string* l); 130 static void Log(const param_type& p, std::string* l);
127 }; 131 };
128 132
129 template <> 133 template <>
130 struct CONTENT_EXPORT ParamTraits<cc::StreamVideoDrawQuad::OverlayResources> { 134 struct CONTENT_EXPORT ParamTraits<cc::StreamVideoDrawQuad::OverlayResources> {
131 typedef cc::StreamVideoDrawQuad::OverlayResources param_type; 135 typedef cc::StreamVideoDrawQuad::OverlayResources param_type;
136 static void GetSize(base::PickleSizer* s, const param_type& p);
132 static void Write(base::Pickle* m, const param_type& p); 137 static void Write(base::Pickle* m, const param_type& p);
133 static bool Read(const base::Pickle* m, 138 static bool Read(const base::Pickle* m,
134 base::PickleIterator* iter, 139 base::PickleIterator* iter,
135 param_type* p); 140 param_type* p);
136 static void Log(const param_type& p, std::string* l); 141 static void Log(const param_type& p, std::string* l);
137 }; 142 };
138 143
139 template <> 144 template <>
140 struct CONTENT_EXPORT ParamTraits<cc::TextureDrawQuad::OverlayResources> { 145 struct CONTENT_EXPORT ParamTraits<cc::TextureDrawQuad::OverlayResources> {
141 typedef cc::TextureDrawQuad::OverlayResources param_type; 146 typedef cc::TextureDrawQuad::OverlayResources param_type;
147 static void GetSize(base::PickleSizer* s, const param_type& p);
142 static void Write(base::Pickle* m, const param_type& p); 148 static void Write(base::Pickle* m, const param_type& p);
143 static bool Read(const base::Pickle* m, 149 static bool Read(const base::Pickle* m,
144 base::PickleIterator* iter, 150 base::PickleIterator* iter,
145 param_type* p); 151 param_type* p);
146 static void Log(const param_type& p, std::string* l); 152 static void Log(const param_type& p, std::string* l);
147 }; 153 };
148 154
149 } // namespace IPC 155 } // namespace IPC
150 156
151 #endif // CONTENT_COMMON_CC_MESSAGES_H_ 157 #endif // CONTENT_COMMON_CC_MESSAGES_H_
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 IPC_STRUCT_TRAITS_MEMBER(satisfies_sequences) 341 IPC_STRUCT_TRAITS_MEMBER(satisfies_sequences)
336 IPC_STRUCT_TRAITS_MEMBER(referenced_surfaces) 342 IPC_STRUCT_TRAITS_MEMBER(referenced_surfaces)
337 IPC_STRUCT_TRAITS_END() 343 IPC_STRUCT_TRAITS_END()
338 344
339 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) 345 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData)
340 IPC_STRUCT_TRAITS_MEMBER(mailbox) 346 IPC_STRUCT_TRAITS_MEMBER(mailbox)
341 IPC_STRUCT_TRAITS_MEMBER(sync_token) 347 IPC_STRUCT_TRAITS_MEMBER(sync_token)
342 IPC_STRUCT_TRAITS_MEMBER(size) 348 IPC_STRUCT_TRAITS_MEMBER(size)
343 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) 349 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect)
344 IPC_STRUCT_TRAITS_END() 350 IPC_STRUCT_TRAITS_END()
OLDNEW
« no previous file with comments | « base/pickle.cc ('k') | content/common/cc_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698