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

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

Issue 1659003003: IPC::Message -> base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more mac fix Created 4 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 | « content/child/plugin_param_traits.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 30 matching lines...) Expand all
41 41
42 namespace cc { 42 namespace cc {
43 class FilterOperations; 43 class FilterOperations;
44 } 44 }
45 45
46 namespace IPC { 46 namespace IPC {
47 47
48 template <> 48 template <>
49 struct ParamTraits<cc::FilterOperation> { 49 struct ParamTraits<cc::FilterOperation> {
50 typedef cc::FilterOperation param_type; 50 typedef cc::FilterOperation param_type;
51 static void Write(Message* m, const param_type& p); 51 static void Write(base::Pickle* m, const param_type& p);
52 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); 52 static bool Read(const base::Pickle* m,
53 base::PickleIterator* iter,
54 param_type* r);
53 static void Log(const param_type& p, std::string* l); 55 static void Log(const param_type& p, std::string* l);
54 }; 56 };
55 57
56 template <> 58 template <>
57 struct ParamTraits<cc::FilterOperations> { 59 struct ParamTraits<cc::FilterOperations> {
58 typedef cc::FilterOperations param_type; 60 typedef cc::FilterOperations param_type;
59 static void Write(Message* m, const param_type& p); 61 static void Write(base::Pickle* m, const param_type& p);
60 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); 62 static bool Read(const base::Pickle* m,
63 base::PickleIterator* iter,
64 param_type* r);
61 static void Log(const param_type& p, std::string* l); 65 static void Log(const param_type& p, std::string* l);
62 }; 66 };
63 67
64 template <> 68 template <>
65 struct ParamTraits<skia::RefPtr<SkImageFilter> > { 69 struct ParamTraits<skia::RefPtr<SkImageFilter> > {
66 typedef skia::RefPtr<SkImageFilter> param_type; 70 typedef skia::RefPtr<SkImageFilter> param_type;
67 static void Write(Message* m, const param_type& p); 71 static void Write(base::Pickle* m, const param_type& p);
68 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); 72 static bool Read(const base::Pickle* m,
73 base::PickleIterator* iter,
74 param_type* r);
69 static void Log(const param_type& p, std::string* l); 75 static void Log(const param_type& p, std::string* l);
70 }; 76 };
71 77
72 template <> 78 template <>
73 struct ParamTraits<gfx::Transform> { 79 struct ParamTraits<gfx::Transform> {
74 typedef gfx::Transform param_type; 80 typedef gfx::Transform param_type;
75 static void Write(Message* m, const param_type& p); 81 static void Write(base::Pickle* m, const param_type& p);
76 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); 82 static bool Read(const base::Pickle* m,
83 base::PickleIterator* iter,
84 param_type* r);
77 static void Log(const param_type& p, std::string* l); 85 static void Log(const param_type& p, std::string* l);
78 }; 86 };
79 87
80 template <> 88 template <>
81 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> { 89 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> {
82 typedef cc::RenderPass param_type; 90 typedef cc::RenderPass param_type;
83 static void Write(Message* m, const param_type& p); 91 static void Write(base::Pickle* m, const param_type& p);
84 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); 92 static bool Read(const base::Pickle* m,
93 base::PickleIterator* iter,
94 param_type* r);
85 static void Log(const param_type& p, std::string* l); 95 static void Log(const param_type& p, std::string* l);
86 }; 96 };
87 97
88 template<> 98 template<>
89 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> { 99 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> {
90 typedef cc::CompositorFrame param_type; 100 typedef cc::CompositorFrame param_type;
91 static void Write(Message* m, const param_type& p); 101 static void Write(base::Pickle* m, const param_type& p);
92 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); 102 static bool Read(const base::Pickle* m,
103 base::PickleIterator* iter,
104 param_type* p);
93 static void Log(const param_type& p, std::string* l); 105 static void Log(const param_type& p, std::string* l);
94 }; 106 };
95 107
96 template<> 108 template<>
97 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrameAck> { 109 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrameAck> {
98 typedef cc::CompositorFrameAck param_type; 110 typedef cc::CompositorFrameAck param_type;
99 static void Write(Message* m, const param_type& p); 111 static void Write(base::Pickle* m, const param_type& p);
100 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); 112 static bool Read(const base::Pickle* m,
113 base::PickleIterator* iter,
114 param_type* p);
101 static void Log(const param_type& p, std::string* l); 115 static void Log(const param_type& p, std::string* l);
102 }; 116 };
103 117
104 template<> 118 template<>
105 struct CONTENT_EXPORT ParamTraits<cc::DelegatedFrameData> { 119 struct CONTENT_EXPORT ParamTraits<cc::DelegatedFrameData> {
106 typedef cc::DelegatedFrameData param_type; 120 typedef cc::DelegatedFrameData param_type;
107 static void Write(Message* m, const param_type& p); 121 static void Write(base::Pickle* m, const param_type& p);
108 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); 122 static bool Read(const base::Pickle* m,
123 base::PickleIterator* iter,
124 param_type* p);
109 static void Log(const param_type& p, std::string* l); 125 static void Log(const param_type& p, std::string* l);
110 }; 126 };
111 127
112 template <> 128 template <>
113 struct CONTENT_EXPORT ParamTraits<cc::DrawQuad::Resources> { 129 struct CONTENT_EXPORT ParamTraits<cc::DrawQuad::Resources> {
114 typedef cc::DrawQuad::Resources param_type; 130 typedef cc::DrawQuad::Resources param_type;
115 static void Write(Message* m, const param_type& p); 131 static void Write(base::Pickle* m, const param_type& p);
116 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); 132 static bool Read(const base::Pickle* m,
133 base::PickleIterator* iter,
134 param_type* p);
117 static void Log(const param_type& p, std::string* l); 135 static void Log(const param_type& p, std::string* l);
118 }; 136 };
119 137
120 template <> 138 template <>
121 struct CONTENT_EXPORT ParamTraits<cc::StreamVideoDrawQuad::OverlayResources> { 139 struct CONTENT_EXPORT ParamTraits<cc::StreamVideoDrawQuad::OverlayResources> {
122 typedef cc::StreamVideoDrawQuad::OverlayResources param_type; 140 typedef cc::StreamVideoDrawQuad::OverlayResources param_type;
123 static void Write(Message* m, const param_type& p); 141 static void Write(base::Pickle* m, const param_type& p);
124 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); 142 static bool Read(const base::Pickle* m,
143 base::PickleIterator* iter,
144 param_type* p);
125 static void Log(const param_type& p, std::string* l); 145 static void Log(const param_type& p, std::string* l);
126 }; 146 };
127 147
128 template <> 148 template <>
129 struct CONTENT_EXPORT ParamTraits<cc::TextureDrawQuad::OverlayResources> { 149 struct CONTENT_EXPORT ParamTraits<cc::TextureDrawQuad::OverlayResources> {
130 typedef cc::TextureDrawQuad::OverlayResources param_type; 150 typedef cc::TextureDrawQuad::OverlayResources param_type;
131 static void Write(Message* m, const param_type& p); 151 static void Write(base::Pickle* m, const param_type& p);
132 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); 152 static bool Read(const base::Pickle* m,
153 base::PickleIterator* iter,
154 param_type* p);
133 static void Log(const param_type& p, std::string* l); 155 static void Log(const param_type& p, std::string* l);
134 }; 156 };
135 157
136 } // namespace IPC 158 } // namespace IPC
137 159
138 #endif // CONTENT_COMMON_CC_MESSAGES_H_ 160 #endif // CONTENT_COMMON_CC_MESSAGES_H_
139 161
140 // Multiply-included message file, hence no include guard. 162 // Multiply-included message file, hence no include guard.
141 163
142 #define IPC_MESSAGE_START CCMsgStart 164 #define IPC_MESSAGE_START CCMsgStart
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 IPC_STRUCT_TRAITS_MEMBER(satisfies_sequences) 342 IPC_STRUCT_TRAITS_MEMBER(satisfies_sequences)
321 IPC_STRUCT_TRAITS_MEMBER(referenced_surfaces) 343 IPC_STRUCT_TRAITS_MEMBER(referenced_surfaces)
322 IPC_STRUCT_TRAITS_END() 344 IPC_STRUCT_TRAITS_END()
323 345
324 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) 346 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData)
325 IPC_STRUCT_TRAITS_MEMBER(mailbox) 347 IPC_STRUCT_TRAITS_MEMBER(mailbox)
326 IPC_STRUCT_TRAITS_MEMBER(sync_token) 348 IPC_STRUCT_TRAITS_MEMBER(sync_token)
327 IPC_STRUCT_TRAITS_MEMBER(size) 349 IPC_STRUCT_TRAITS_MEMBER(size)
328 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) 350 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect)
329 IPC_STRUCT_TRAITS_END() 351 IPC_STRUCT_TRAITS_END()
OLDNEW
« no previous file with comments | « content/child/plugin_param_traits.cc ('k') | content/common/cc_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698