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