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

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

Issue 11861020: Aura: Browser-side changes for Composite-To-Mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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/checkerboard_draw_quad.h" 7 #include "cc/checkerboard_draw_quad.h"
8 #include "cc/compositor_frame.h" 8 #include "cc/compositor_frame.h"
9 #include "cc/compositor_frame_ack.h" 9 #include "cc/compositor_frame_ack.h"
10 #include "cc/debug_border_draw_quad.h" 10 #include "cc/debug_border_draw_quad.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 template<> 85 template<>
86 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> { 86 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> {
87 typedef cc::CompositorFrame param_type; 87 typedef cc::CompositorFrame param_type;
88 static void Write(Message* m, const param_type& p); 88 static void Write(Message* m, const param_type& p);
89 static bool Read(const Message* m, PickleIterator* iter, param_type* p); 89 static bool Read(const Message* m, PickleIterator* iter, param_type* p);
90 static void Log(const param_type& p, std::string* l); 90 static void Log(const param_type& p, std::string* l);
91 }; 91 };
92 92
93 template<> 93 template<>
94 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrameAck> {
95 typedef cc::CompositorFrameAck param_type;
96 static void Write(Message* m, const param_type& p);
97 static bool Read(const Message* m, PickleIterator* iter, param_type* p);
98 static void Log(const param_type& p, std::string* l);
99 };
100
101 template<>
94 struct CONTENT_EXPORT ParamTraits<cc::DelegatedFrameData> { 102 struct CONTENT_EXPORT ParamTraits<cc::DelegatedFrameData> {
95 typedef cc::DelegatedFrameData param_type; 103 typedef cc::DelegatedFrameData param_type;
96 static void Write(Message* m, const param_type& p); 104 static void Write(Message* m, const param_type& p);
97 static bool Read(const Message* m, PickleIterator* iter, param_type* p); 105 static bool Read(const Message* m, PickleIterator* iter, param_type* p);
98 static void Log(const param_type& p, std::string* l); 106 static void Log(const param_type& p, std::string* l);
99 }; 107 };
100 108
101 } // namespace IPC 109 } // namespace IPC
102 110
103 #endif // CONTENT_COMMON_CC_MESSAGES_H_ 111 #endif // CONTENT_COMMON_CC_MESSAGES_H_
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 IPC_STRUCT_TRAITS_MEMBER(format) 226 IPC_STRUCT_TRAITS_MEMBER(format)
219 IPC_STRUCT_TRAITS_MEMBER(size) 227 IPC_STRUCT_TRAITS_MEMBER(size)
220 IPC_STRUCT_TRAITS_MEMBER(mailbox) 228 IPC_STRUCT_TRAITS_MEMBER(mailbox)
221 IPC_STRUCT_TRAITS_END() 229 IPC_STRUCT_TRAITS_END()
222 230
223 IPC_STRUCT_TRAITS_BEGIN(cc::TransferableResourceList) 231 IPC_STRUCT_TRAITS_BEGIN(cc::TransferableResourceList)
224 IPC_STRUCT_TRAITS_MEMBER(sync_point) 232 IPC_STRUCT_TRAITS_MEMBER(sync_point)
225 IPC_STRUCT_TRAITS_MEMBER(resources) 233 IPC_STRUCT_TRAITS_MEMBER(resources)
226 IPC_STRUCT_TRAITS_END() 234 IPC_STRUCT_TRAITS_END()
227 235
228 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameAck)
229 IPC_STRUCT_TRAITS_MEMBER(resources)
230 IPC_STRUCT_TRAITS_END()
231
232 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameMetadata) 236 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameMetadata)
233 IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset) 237 IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset)
234 IPC_STRUCT_TRAITS_MEMBER(page_scale_factor) 238 IPC_STRUCT_TRAITS_MEMBER(page_scale_factor)
235 IPC_STRUCT_TRAITS_MEMBER(viewport_size) 239 IPC_STRUCT_TRAITS_MEMBER(viewport_size)
236 IPC_STRUCT_TRAITS_MEMBER(root_layer_size) 240 IPC_STRUCT_TRAITS_MEMBER(root_layer_size)
237 IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor) 241 IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor)
238 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor) 242 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor)
239 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset) 243 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset)
240 IPC_STRUCT_TRAITS_MEMBER(location_bar_content_translation) 244 IPC_STRUCT_TRAITS_MEMBER(location_bar_content_translation)
241 IPC_STRUCT_TRAITS_END() 245 IPC_STRUCT_TRAITS_END()
242 246
243 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) 247 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData)
244 IPC_STRUCT_TRAITS_MEMBER(mailbox) 248 IPC_STRUCT_TRAITS_MEMBER(mailbox)
245 IPC_STRUCT_TRAITS_MEMBER(sync_point) 249 IPC_STRUCT_TRAITS_MEMBER(sync_point)
250 IPC_STRUCT_TRAITS_MEMBER(size)
246 IPC_STRUCT_TRAITS_END() 251 IPC_STRUCT_TRAITS_END()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698