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

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

Issue 11316128: Send compositor frame IPC with metadata. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix compile errors on mac/win Created 8 years 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/browser/renderer_host/render_widget_host_impl.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/checkerboard_draw_quad.h" 7 #include "cc/checkerboard_draw_quad.h"
8 #include "cc/compositor_frame.h"
8 #include "cc/compositor_frame_ack.h" 9 #include "cc/compositor_frame_ack.h"
9 #include "cc/debug_border_draw_quad.h" 10 #include "cc/debug_border_draw_quad.h"
10 #include "cc/draw_quad.h" 11 #include "cc/draw_quad.h"
11 #include "cc/io_surface_draw_quad.h" 12 #include "cc/io_surface_draw_quad.h"
12 #include "cc/render_pass.h" 13 #include "cc/render_pass.h"
13 #include "cc/render_pass_draw_quad.h" 14 #include "cc/render_pass_draw_quad.h"
14 #include "cc/shared_quad_state.h" 15 #include "cc/shared_quad_state.h"
15 #include "cc/solid_color_draw_quad.h" 16 #include "cc/solid_color_draw_quad.h"
16 #include "cc/stream_video_draw_quad.h" 17 #include "cc/stream_video_draw_quad.h"
17 #include "cc/texture_draw_quad.h" 18 #include "cc/texture_draw_quad.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 }; 83 };
83 84
84 template<> 85 template<>
85 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> { 86 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> {
86 typedef cc::CompositorFrame param_type; 87 typedef cc::CompositorFrame param_type;
87 static void Write(Message* m, const param_type& p); 88 static void Write(Message* m, const param_type& p);
88 static bool Read(const Message* m, PickleIterator* iter, param_type* p); 89 static bool Read(const Message* m, PickleIterator* iter, param_type* p);
89 static void Log(const param_type& p, std::string* l); 90 static void Log(const param_type& p, std::string* l);
90 }; 91 };
91 92
93 template<>
94 struct CONTENT_EXPORT ParamTraits<cc::DelegatedFrameData> {
95 typedef cc::DelegatedFrameData 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
92 } // namespace IPC 101 } // namespace IPC
93 102
94 #endif // CONTENT_COMMON_CC_MESSAGES_H_ 103 #endif // CONTENT_COMMON_CC_MESSAGES_H_
95 104
96 // Multiply-included message file, hence no include guard. 105 // Multiply-included message file, hence no include guard.
97 106
98 #define IPC_MESSAGE_START CCMsgStart 107 #define IPC_MESSAGE_START CCMsgStart
99 #undef IPC_MESSAGE_EXPORT 108 #undef IPC_MESSAGE_EXPORT
100 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 109 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
101 110
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 IPC_STRUCT_TRAITS_END() 213 IPC_STRUCT_TRAITS_END()
205 214
206 IPC_STRUCT_TRAITS_BEGIN(cc::TransferableResourceList) 215 IPC_STRUCT_TRAITS_BEGIN(cc::TransferableResourceList)
207 IPC_STRUCT_TRAITS_MEMBER(sync_point) 216 IPC_STRUCT_TRAITS_MEMBER(sync_point)
208 IPC_STRUCT_TRAITS_MEMBER(resources) 217 IPC_STRUCT_TRAITS_MEMBER(resources)
209 IPC_STRUCT_TRAITS_END() 218 IPC_STRUCT_TRAITS_END()
210 219
211 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameAck) 220 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameAck)
212 IPC_STRUCT_TRAITS_MEMBER(resources) 221 IPC_STRUCT_TRAITS_MEMBER(resources)
213 IPC_STRUCT_TRAITS_END() 222 IPC_STRUCT_TRAITS_END()
223
224 IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameMetadata)
225 IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset)
226 IPC_STRUCT_TRAITS_MEMBER(page_scale_factor)
227 IPC_STRUCT_TRAITS_MEMBER(viewport_size)
228 IPC_STRUCT_TRAITS_MEMBER(root_layer_size)
229 IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor)
230 IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor)
231 IPC_STRUCT_TRAITS_MEMBER(location_bar_offset)
232 IPC_STRUCT_TRAITS_END()
233
234 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData)
235 IPC_STRUCT_TRAITS_MEMBER(mailbox)
236 IPC_STRUCT_TRAITS_MEMBER(sync_point)
237 IPC_STRUCT_TRAITS_END()
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/common/cc_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698