| OLD | NEW |
| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 template <> | 113 template <> |
| 114 struct CONTENT_EXPORT ParamTraits<cc::SoftwareFrameData> { | 114 struct CONTENT_EXPORT ParamTraits<cc::SoftwareFrameData> { |
| 115 typedef cc::SoftwareFrameData param_type; | 115 typedef cc::SoftwareFrameData param_type; |
| 116 static void Write(Message* m, const param_type& p); | 116 static void Write(Message* m, const param_type& p); |
| 117 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); | 117 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); |
| 118 static void Log(const param_type& p, std::string* l); | 118 static void Log(const param_type& p, std::string* l); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 template <> |
| 122 struct CONTENT_EXPORT ParamTraits<cc::DrawQuad::Resources> { |
| 123 typedef cc::DrawQuad::Resources param_type; |
| 124 static void Write(Message* m, const param_type& p); |
| 125 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
| 126 static void Log(const param_type& p, std::string* l); |
| 127 }; |
| 128 |
| 121 } // namespace IPC | 129 } // namespace IPC |
| 122 | 130 |
| 123 #endif // CONTENT_COMMON_CC_MESSAGES_H_ | 131 #endif // CONTENT_COMMON_CC_MESSAGES_H_ |
| 124 | 132 |
| 125 // Multiply-included message file, hence no include guard. | 133 // Multiply-included message file, hence no include guard. |
| 126 | 134 |
| 127 #define IPC_MESSAGE_START CCMsgStart | 135 #define IPC_MESSAGE_START CCMsgStart |
| 128 #undef IPC_MESSAGE_EXPORT | 136 #undef IPC_MESSAGE_EXPORT |
| 129 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 137 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 130 | 138 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 152 IPC_STRUCT_TRAITS_MEMBER(id_namespace) | 160 IPC_STRUCT_TRAITS_MEMBER(id_namespace) |
| 153 IPC_STRUCT_TRAITS_MEMBER(sequence) | 161 IPC_STRUCT_TRAITS_MEMBER(sequence) |
| 154 IPC_STRUCT_TRAITS_END() | 162 IPC_STRUCT_TRAITS_END() |
| 155 | 163 |
| 156 IPC_STRUCT_TRAITS_BEGIN(cc::DrawQuad) | 164 IPC_STRUCT_TRAITS_BEGIN(cc::DrawQuad) |
| 157 IPC_STRUCT_TRAITS_MEMBER(material) | 165 IPC_STRUCT_TRAITS_MEMBER(material) |
| 158 IPC_STRUCT_TRAITS_MEMBER(rect) | 166 IPC_STRUCT_TRAITS_MEMBER(rect) |
| 159 IPC_STRUCT_TRAITS_MEMBER(opaque_rect) | 167 IPC_STRUCT_TRAITS_MEMBER(opaque_rect) |
| 160 IPC_STRUCT_TRAITS_MEMBER(visible_rect) | 168 IPC_STRUCT_TRAITS_MEMBER(visible_rect) |
| 161 IPC_STRUCT_TRAITS_MEMBER(needs_blending) | 169 IPC_STRUCT_TRAITS_MEMBER(needs_blending) |
| 170 IPC_STRUCT_TRAITS_MEMBER(resources) |
| 162 IPC_STRUCT_TRAITS_END() | 171 IPC_STRUCT_TRAITS_END() |
| 163 | 172 |
| 164 IPC_STRUCT_TRAITS_BEGIN(cc::CheckerboardDrawQuad) | 173 IPC_STRUCT_TRAITS_BEGIN(cc::CheckerboardDrawQuad) |
| 165 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 174 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 166 IPC_STRUCT_TRAITS_MEMBER(color) | 175 IPC_STRUCT_TRAITS_MEMBER(color) |
| 167 IPC_STRUCT_TRAITS_MEMBER(scale) | 176 IPC_STRUCT_TRAITS_MEMBER(scale) |
| 168 IPC_STRUCT_TRAITS_END() | 177 IPC_STRUCT_TRAITS_END() |
| 169 | 178 |
| 170 IPC_STRUCT_TRAITS_BEGIN(cc::DebugBorderDrawQuad) | 179 IPC_STRUCT_TRAITS_BEGIN(cc::DebugBorderDrawQuad) |
| 171 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 180 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 172 IPC_STRUCT_TRAITS_MEMBER(color) | 181 IPC_STRUCT_TRAITS_MEMBER(color) |
| 173 IPC_STRUCT_TRAITS_MEMBER(width) | 182 IPC_STRUCT_TRAITS_MEMBER(width) |
| 174 IPC_STRUCT_TRAITS_END() | 183 IPC_STRUCT_TRAITS_END() |
| 175 | 184 |
| 176 IPC_STRUCT_TRAITS_BEGIN(cc::IOSurfaceDrawQuad) | 185 IPC_STRUCT_TRAITS_BEGIN(cc::IOSurfaceDrawQuad) |
| 177 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 186 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 178 IPC_STRUCT_TRAITS_MEMBER(io_surface_size) | 187 IPC_STRUCT_TRAITS_MEMBER(io_surface_size) |
| 179 IPC_STRUCT_TRAITS_MEMBER(io_surface_resource_id) | |
| 180 IPC_STRUCT_TRAITS_MEMBER(orientation) | 188 IPC_STRUCT_TRAITS_MEMBER(orientation) |
| 181 IPC_STRUCT_TRAITS_END() | 189 IPC_STRUCT_TRAITS_END() |
| 182 | 190 |
| 183 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPassDrawQuad) | 191 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPassDrawQuad) |
| 184 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 192 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 185 IPC_STRUCT_TRAITS_MEMBER(render_pass_id) | 193 IPC_STRUCT_TRAITS_MEMBER(render_pass_id) |
| 186 IPC_STRUCT_TRAITS_MEMBER(mask_resource_id) | |
| 187 IPC_STRUCT_TRAITS_MEMBER(mask_uv_scale) | 194 IPC_STRUCT_TRAITS_MEMBER(mask_uv_scale) |
| 188 IPC_STRUCT_TRAITS_MEMBER(mask_texture_size) | 195 IPC_STRUCT_TRAITS_MEMBER(mask_texture_size) |
| 189 IPC_STRUCT_TRAITS_MEMBER(filters) | 196 IPC_STRUCT_TRAITS_MEMBER(filters) |
| 190 IPC_STRUCT_TRAITS_MEMBER(filters_scale) | 197 IPC_STRUCT_TRAITS_MEMBER(filters_scale) |
| 191 IPC_STRUCT_TRAITS_MEMBER(background_filters) | 198 IPC_STRUCT_TRAITS_MEMBER(background_filters) |
| 192 IPC_STRUCT_TRAITS_END() | 199 IPC_STRUCT_TRAITS_END() |
| 193 | 200 |
| 194 IPC_STRUCT_TRAITS_BEGIN(cc::SolidColorDrawQuad) | 201 IPC_STRUCT_TRAITS_BEGIN(cc::SolidColorDrawQuad) |
| 195 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 202 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 196 IPC_STRUCT_TRAITS_MEMBER(color) | 203 IPC_STRUCT_TRAITS_MEMBER(color) |
| 197 IPC_STRUCT_TRAITS_MEMBER(force_anti_aliasing_off) | 204 IPC_STRUCT_TRAITS_MEMBER(force_anti_aliasing_off) |
| 198 IPC_STRUCT_TRAITS_END() | 205 IPC_STRUCT_TRAITS_END() |
| 199 | 206 |
| 200 IPC_STRUCT_TRAITS_BEGIN(cc::StreamVideoDrawQuad) | 207 IPC_STRUCT_TRAITS_BEGIN(cc::StreamVideoDrawQuad) |
| 201 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 208 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 202 IPC_STRUCT_TRAITS_MEMBER(resource_id) | |
| 203 IPC_STRUCT_TRAITS_MEMBER(matrix) | 209 IPC_STRUCT_TRAITS_MEMBER(matrix) |
| 204 IPC_STRUCT_TRAITS_END() | 210 IPC_STRUCT_TRAITS_END() |
| 205 | 211 |
| 206 IPC_STRUCT_TRAITS_BEGIN(cc::SurfaceDrawQuad) | 212 IPC_STRUCT_TRAITS_BEGIN(cc::SurfaceDrawQuad) |
| 207 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 213 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 208 IPC_STRUCT_TRAITS_MEMBER(surface_id) | 214 IPC_STRUCT_TRAITS_MEMBER(surface_id) |
| 209 IPC_STRUCT_TRAITS_END() | 215 IPC_STRUCT_TRAITS_END() |
| 210 | 216 |
| 211 IPC_STRUCT_TRAITS_BEGIN(cc::TextureDrawQuad) | 217 IPC_STRUCT_TRAITS_BEGIN(cc::TextureDrawQuad) |
| 212 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 218 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 213 IPC_STRUCT_TRAITS_MEMBER(resource_id) | |
| 214 IPC_STRUCT_TRAITS_MEMBER(premultiplied_alpha) | 219 IPC_STRUCT_TRAITS_MEMBER(premultiplied_alpha) |
| 215 IPC_STRUCT_TRAITS_MEMBER(uv_top_left) | 220 IPC_STRUCT_TRAITS_MEMBER(uv_top_left) |
| 216 IPC_STRUCT_TRAITS_MEMBER(uv_bottom_right) | 221 IPC_STRUCT_TRAITS_MEMBER(uv_bottom_right) |
| 217 IPC_STRUCT_TRAITS_MEMBER(background_color) | 222 IPC_STRUCT_TRAITS_MEMBER(background_color) |
| 218 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[0]) | 223 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[0]) |
| 219 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[1]) | 224 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[1]) |
| 220 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[2]) | 225 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[2]) |
| 221 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[3]) | 226 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[3]) |
| 222 IPC_STRUCT_TRAITS_MEMBER(y_flipped) | 227 IPC_STRUCT_TRAITS_MEMBER(y_flipped) |
| 223 IPC_STRUCT_TRAITS_MEMBER(nearest_neighbor) | 228 IPC_STRUCT_TRAITS_MEMBER(nearest_neighbor) |
| 224 IPC_STRUCT_TRAITS_END() | 229 IPC_STRUCT_TRAITS_END() |
| 225 | 230 |
| 226 IPC_STRUCT_TRAITS_BEGIN(cc::TileDrawQuad) | 231 IPC_STRUCT_TRAITS_BEGIN(cc::TileDrawQuad) |
| 227 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 232 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 228 IPC_STRUCT_TRAITS_MEMBER(resource_id) | |
| 229 IPC_STRUCT_TRAITS_MEMBER(tex_coord_rect) | 233 IPC_STRUCT_TRAITS_MEMBER(tex_coord_rect) |
| 230 IPC_STRUCT_TRAITS_MEMBER(texture_size) | 234 IPC_STRUCT_TRAITS_MEMBER(texture_size) |
| 231 IPC_STRUCT_TRAITS_MEMBER(swizzle_contents) | 235 IPC_STRUCT_TRAITS_MEMBER(swizzle_contents) |
| 232 IPC_STRUCT_TRAITS_MEMBER(nearest_neighbor) | 236 IPC_STRUCT_TRAITS_MEMBER(nearest_neighbor) |
| 233 IPC_STRUCT_TRAITS_END() | 237 IPC_STRUCT_TRAITS_END() |
| 234 | 238 |
| 235 IPC_STRUCT_TRAITS_BEGIN(cc::YUVVideoDrawQuad) | 239 IPC_STRUCT_TRAITS_BEGIN(cc::YUVVideoDrawQuad) |
| 236 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 240 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 237 IPC_STRUCT_TRAITS_MEMBER(ya_tex_coord_rect) | 241 IPC_STRUCT_TRAITS_MEMBER(ya_tex_coord_rect) |
| 238 IPC_STRUCT_TRAITS_MEMBER(uv_tex_coord_rect) | 242 IPC_STRUCT_TRAITS_MEMBER(uv_tex_coord_rect) |
| 239 IPC_STRUCT_TRAITS_MEMBER(ya_tex_size) | 243 IPC_STRUCT_TRAITS_MEMBER(ya_tex_size) |
| 240 IPC_STRUCT_TRAITS_MEMBER(uv_tex_size) | 244 IPC_STRUCT_TRAITS_MEMBER(uv_tex_size) |
| 241 IPC_STRUCT_TRAITS_MEMBER(y_plane_resource_id) | |
| 242 IPC_STRUCT_TRAITS_MEMBER(u_plane_resource_id) | |
| 243 IPC_STRUCT_TRAITS_MEMBER(v_plane_resource_id) | |
| 244 IPC_STRUCT_TRAITS_MEMBER(a_plane_resource_id) | |
| 245 IPC_STRUCT_TRAITS_MEMBER(color_space) | 245 IPC_STRUCT_TRAITS_MEMBER(color_space) |
| 246 IPC_STRUCT_TRAITS_END() | 246 IPC_STRUCT_TRAITS_END() |
| 247 | 247 |
| 248 IPC_STRUCT_TRAITS_BEGIN(cc::SharedQuadState) | 248 IPC_STRUCT_TRAITS_BEGIN(cc::SharedQuadState) |
| 249 IPC_STRUCT_TRAITS_MEMBER(content_to_target_transform) | 249 IPC_STRUCT_TRAITS_MEMBER(content_to_target_transform) |
| 250 IPC_STRUCT_TRAITS_MEMBER(content_bounds) | 250 IPC_STRUCT_TRAITS_MEMBER(content_bounds) |
| 251 IPC_STRUCT_TRAITS_MEMBER(visible_content_rect) | 251 IPC_STRUCT_TRAITS_MEMBER(visible_content_rect) |
| 252 IPC_STRUCT_TRAITS_MEMBER(clip_rect) | 252 IPC_STRUCT_TRAITS_MEMBER(clip_rect) |
| 253 IPC_STRUCT_TRAITS_MEMBER(is_clipped) | 253 IPC_STRUCT_TRAITS_MEMBER(is_clipped) |
| 254 IPC_STRUCT_TRAITS_MEMBER(opacity) | 254 IPC_STRUCT_TRAITS_MEMBER(opacity) |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 IPC_STRUCT_TRAITS_MEMBER(latency_info) | 315 IPC_STRUCT_TRAITS_MEMBER(latency_info) |
| 316 IPC_STRUCT_TRAITS_MEMBER(satisfies_sequences) | 316 IPC_STRUCT_TRAITS_MEMBER(satisfies_sequences) |
| 317 IPC_STRUCT_TRAITS_END() | 317 IPC_STRUCT_TRAITS_END() |
| 318 | 318 |
| 319 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) | 319 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) |
| 320 IPC_STRUCT_TRAITS_MEMBER(mailbox) | 320 IPC_STRUCT_TRAITS_MEMBER(mailbox) |
| 321 IPC_STRUCT_TRAITS_MEMBER(sync_point) | 321 IPC_STRUCT_TRAITS_MEMBER(sync_point) |
| 322 IPC_STRUCT_TRAITS_MEMBER(size) | 322 IPC_STRUCT_TRAITS_MEMBER(size) |
| 323 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) | 323 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) |
| 324 IPC_STRUCT_TRAITS_END() | 324 IPC_STRUCT_TRAITS_END() |
| OLD | NEW |