| 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/layers/video_layer_impl.h" | |
| 8 #include "cc/output/compositor_frame.h" | 7 #include "cc/output/compositor_frame.h" |
| 9 #include "cc/output/compositor_frame_ack.h" | 8 #include "cc/output/compositor_frame_ack.h" |
| 10 #include "cc/quads/checkerboard_draw_quad.h" | 9 #include "cc/quads/checkerboard_draw_quad.h" |
| 11 #include "cc/quads/debug_border_draw_quad.h" | 10 #include "cc/quads/debug_border_draw_quad.h" |
| 12 #include "cc/quads/draw_quad.h" | 11 #include "cc/quads/draw_quad.h" |
| 13 #include "cc/quads/io_surface_draw_quad.h" | 12 #include "cc/quads/io_surface_draw_quad.h" |
| 14 #include "cc/quads/picture_draw_quad.h" | 13 #include "cc/quads/picture_draw_quad.h" |
| 15 #include "cc/quads/render_pass.h" | 14 #include "cc/quads/render_pass.h" |
| 16 #include "cc/quads/render_pass_draw_quad.h" | 15 #include "cc/quads/render_pass_draw_quad.h" |
| 17 #include "cc/quads/shared_quad_state.h" | 16 #include "cc/quads/shared_quad_state.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 107 |
| 109 IPC_ENUM_TRAITS(cc::DrawQuad::Material) | 108 IPC_ENUM_TRAITS(cc::DrawQuad::Material) |
| 110 IPC_ENUM_TRAITS(cc::IOSurfaceDrawQuad::Orientation) | 109 IPC_ENUM_TRAITS(cc::IOSurfaceDrawQuad::Orientation) |
| 111 IPC_ENUM_TRAITS(WebKit::WebFilterOperation::FilterType) | 110 IPC_ENUM_TRAITS(WebKit::WebFilterOperation::FilterType) |
| 112 | 111 |
| 113 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPass::Id) | 112 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPass::Id) |
| 114 IPC_STRUCT_TRAITS_MEMBER(layer_id) | 113 IPC_STRUCT_TRAITS_MEMBER(layer_id) |
| 115 IPC_STRUCT_TRAITS_MEMBER(index) | 114 IPC_STRUCT_TRAITS_MEMBER(index) |
| 116 IPC_STRUCT_TRAITS_END() | 115 IPC_STRUCT_TRAITS_END() |
| 117 | 116 |
| 118 IPC_STRUCT_TRAITS_BEGIN(cc::VideoLayerImpl::FramePlane) | |
| 119 IPC_STRUCT_TRAITS_MEMBER(resource_id) | |
| 120 IPC_STRUCT_TRAITS_MEMBER(size) | |
| 121 IPC_STRUCT_TRAITS_MEMBER(format) | |
| 122 IPC_STRUCT_TRAITS_END() | |
| 123 | |
| 124 IPC_STRUCT_TRAITS_BEGIN(cc::DrawQuad) | 117 IPC_STRUCT_TRAITS_BEGIN(cc::DrawQuad) |
| 125 IPC_STRUCT_TRAITS_MEMBER(material) | 118 IPC_STRUCT_TRAITS_MEMBER(material) |
| 126 IPC_STRUCT_TRAITS_MEMBER(rect) | 119 IPC_STRUCT_TRAITS_MEMBER(rect) |
| 127 IPC_STRUCT_TRAITS_MEMBER(opaque_rect) | 120 IPC_STRUCT_TRAITS_MEMBER(opaque_rect) |
| 128 IPC_STRUCT_TRAITS_MEMBER(visible_rect) | 121 IPC_STRUCT_TRAITS_MEMBER(visible_rect) |
| 129 IPC_STRUCT_TRAITS_MEMBER(needs_blending) | 122 IPC_STRUCT_TRAITS_MEMBER(needs_blending) |
| 130 IPC_STRUCT_TRAITS_END() | 123 IPC_STRUCT_TRAITS_END() |
| 131 | 124 |
| 132 IPC_STRUCT_TRAITS_BEGIN(cc::CheckerboardDrawQuad) | 125 IPC_STRUCT_TRAITS_BEGIN(cc::CheckerboardDrawQuad) |
| 133 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 126 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 134 IPC_STRUCT_TRAITS_MEMBER(color) | 127 IPC_STRUCT_TRAITS_MEMBER(color) |
| 135 IPC_STRUCT_TRAITS_END() | 128 IPC_STRUCT_TRAITS_END() |
| 136 | 129 |
| 137 IPC_STRUCT_TRAITS_BEGIN(cc::DebugBorderDrawQuad) | 130 IPC_STRUCT_TRAITS_BEGIN(cc::DebugBorderDrawQuad) |
| 138 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 131 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 139 IPC_STRUCT_TRAITS_MEMBER(color) | 132 IPC_STRUCT_TRAITS_MEMBER(color) |
| 140 IPC_STRUCT_TRAITS_MEMBER(width) | 133 IPC_STRUCT_TRAITS_MEMBER(width) |
| 141 IPC_STRUCT_TRAITS_END() | 134 IPC_STRUCT_TRAITS_END() |
| 142 | 135 |
| 143 IPC_STRUCT_TRAITS_BEGIN(cc::IOSurfaceDrawQuad) | 136 IPC_STRUCT_TRAITS_BEGIN(cc::IOSurfaceDrawQuad) |
| 144 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 137 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 145 IPC_STRUCT_TRAITS_MEMBER(io_surface_size) | 138 IPC_STRUCT_TRAITS_MEMBER(io_surface_size) |
| 146 IPC_STRUCT_TRAITS_MEMBER(io_surface_texture_id) | 139 IPC_STRUCT_TRAITS_MEMBER(io_surface_resource_id) |
| 147 IPC_STRUCT_TRAITS_MEMBER(orientation) | 140 IPC_STRUCT_TRAITS_MEMBER(orientation) |
| 148 IPC_STRUCT_TRAITS_END() | 141 IPC_STRUCT_TRAITS_END() |
| 149 | 142 |
| 150 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPassDrawQuad) | 143 IPC_STRUCT_TRAITS_BEGIN(cc::RenderPassDrawQuad) |
| 151 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 144 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 152 IPC_STRUCT_TRAITS_MEMBER(is_replica) | 145 IPC_STRUCT_TRAITS_MEMBER(is_replica) |
| 153 IPC_STRUCT_TRAITS_MEMBER(mask_resource_id) | 146 IPC_STRUCT_TRAITS_MEMBER(mask_resource_id) |
| 154 IPC_STRUCT_TRAITS_MEMBER(contents_changed_since_last_frame) | 147 IPC_STRUCT_TRAITS_MEMBER(contents_changed_since_last_frame) |
| 155 IPC_STRUCT_TRAITS_MEMBER(mask_uv_rect) | 148 IPC_STRUCT_TRAITS_MEMBER(mask_uv_rect) |
| 156 IPC_STRUCT_TRAITS_MEMBER(filters) | 149 IPC_STRUCT_TRAITS_MEMBER(filters) |
| 157 // TODO(piman): filter isn't being serialized. | 150 // TODO(piman): filter isn't being serialized. |
| 158 // IPC_STRUCT_TRAITS_MEMBER(filter) | 151 // IPC_STRUCT_TRAITS_MEMBER(filter) |
| 159 IPC_STRUCT_TRAITS_MEMBER(background_filters) | 152 IPC_STRUCT_TRAITS_MEMBER(background_filters) |
| 160 IPC_STRUCT_TRAITS_END() | 153 IPC_STRUCT_TRAITS_END() |
| 161 | 154 |
| 162 IPC_STRUCT_TRAITS_BEGIN(cc::SolidColorDrawQuad) | 155 IPC_STRUCT_TRAITS_BEGIN(cc::SolidColorDrawQuad) |
| 163 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 156 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 164 IPC_STRUCT_TRAITS_MEMBER(color) | 157 IPC_STRUCT_TRAITS_MEMBER(color) |
| 165 IPC_STRUCT_TRAITS_END() | 158 IPC_STRUCT_TRAITS_END() |
| 166 | 159 |
| 167 IPC_STRUCT_TRAITS_BEGIN(cc::StreamVideoDrawQuad) | 160 IPC_STRUCT_TRAITS_BEGIN(cc::StreamVideoDrawQuad) |
| 168 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 161 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 169 IPC_STRUCT_TRAITS_MEMBER(texture_id) | 162 IPC_STRUCT_TRAITS_MEMBER(resource_id) |
| 170 IPC_STRUCT_TRAITS_MEMBER(matrix) | 163 IPC_STRUCT_TRAITS_MEMBER(matrix) |
| 171 IPC_STRUCT_TRAITS_END() | 164 IPC_STRUCT_TRAITS_END() |
| 172 | 165 |
| 173 IPC_STRUCT_TRAITS_BEGIN(cc::TextureDrawQuad) | 166 IPC_STRUCT_TRAITS_BEGIN(cc::TextureDrawQuad) |
| 174 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 167 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 175 IPC_STRUCT_TRAITS_MEMBER(resource_id) | 168 IPC_STRUCT_TRAITS_MEMBER(resource_id) |
| 176 IPC_STRUCT_TRAITS_MEMBER(premultiplied_alpha) | 169 IPC_STRUCT_TRAITS_MEMBER(premultiplied_alpha) |
| 177 IPC_STRUCT_TRAITS_MEMBER(uv_top_left) | 170 IPC_STRUCT_TRAITS_MEMBER(uv_top_left) |
| 178 IPC_STRUCT_TRAITS_MEMBER(uv_bottom_right) | 171 IPC_STRUCT_TRAITS_MEMBER(uv_bottom_right) |
| 179 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[0]) | 172 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[0]) |
| 180 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[1]) | 173 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[1]) |
| 181 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[2]) | 174 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[2]) |
| 182 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[3]) | 175 IPC_STRUCT_TRAITS_MEMBER(vertex_opacity[3]) |
| 183 IPC_STRUCT_TRAITS_MEMBER(flipped) | 176 IPC_STRUCT_TRAITS_MEMBER(flipped) |
| 184 IPC_STRUCT_TRAITS_END() | 177 IPC_STRUCT_TRAITS_END() |
| 185 | 178 |
| 186 IPC_STRUCT_TRAITS_BEGIN(cc::TileDrawQuad) | 179 IPC_STRUCT_TRAITS_BEGIN(cc::TileDrawQuad) |
| 187 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 180 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 188 IPC_STRUCT_TRAITS_MEMBER(resource_id) | 181 IPC_STRUCT_TRAITS_MEMBER(resource_id) |
| 189 IPC_STRUCT_TRAITS_MEMBER(tex_coord_rect) | 182 IPC_STRUCT_TRAITS_MEMBER(tex_coord_rect) |
| 190 IPC_STRUCT_TRAITS_MEMBER(texture_size) | 183 IPC_STRUCT_TRAITS_MEMBER(texture_size) |
| 191 IPC_STRUCT_TRAITS_MEMBER(swizzle_contents) | 184 IPC_STRUCT_TRAITS_MEMBER(swizzle_contents) |
| 192 IPC_STRUCT_TRAITS_END() | 185 IPC_STRUCT_TRAITS_END() |
| 193 | 186 |
| 194 IPC_STRUCT_TRAITS_BEGIN(cc::YUVVideoDrawQuad) | 187 IPC_STRUCT_TRAITS_BEGIN(cc::YUVVideoDrawQuad) |
| 195 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) | 188 IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) |
| 196 IPC_STRUCT_TRAITS_MEMBER(tex_scale) | 189 IPC_STRUCT_TRAITS_MEMBER(tex_scale) |
| 197 IPC_STRUCT_TRAITS_MEMBER(y_plane) | 190 IPC_STRUCT_TRAITS_MEMBER(y_plane_resource_id) |
| 198 IPC_STRUCT_TRAITS_MEMBER(u_plane) | 191 IPC_STRUCT_TRAITS_MEMBER(u_plane_resource_id) |
| 199 IPC_STRUCT_TRAITS_MEMBER(v_plane) | 192 IPC_STRUCT_TRAITS_MEMBER(v_plane_resource_id) |
| 200 IPC_STRUCT_TRAITS_END() | 193 IPC_STRUCT_TRAITS_END() |
| 201 | 194 |
| 202 IPC_STRUCT_TRAITS_BEGIN(cc::SharedQuadState) | 195 IPC_STRUCT_TRAITS_BEGIN(cc::SharedQuadState) |
| 203 IPC_STRUCT_TRAITS_MEMBER(content_to_target_transform) | 196 IPC_STRUCT_TRAITS_MEMBER(content_to_target_transform) |
| 204 IPC_STRUCT_TRAITS_MEMBER(content_bounds) | 197 IPC_STRUCT_TRAITS_MEMBER(content_bounds) |
| 205 IPC_STRUCT_TRAITS_MEMBER(visible_content_rect) | 198 IPC_STRUCT_TRAITS_MEMBER(visible_content_rect) |
| 206 IPC_STRUCT_TRAITS_MEMBER(clip_rect) | 199 IPC_STRUCT_TRAITS_MEMBER(clip_rect) |
| 207 IPC_STRUCT_TRAITS_MEMBER(is_clipped) | 200 IPC_STRUCT_TRAITS_MEMBER(is_clipped) |
| 208 IPC_STRUCT_TRAITS_MEMBER(opacity) | 201 IPC_STRUCT_TRAITS_MEMBER(opacity) |
| 209 IPC_STRUCT_TRAITS_END() | 202 IPC_STRUCT_TRAITS_END() |
| (...skipping 24 matching lines...) Expand all Loading... |
| 234 IPC_STRUCT_TRAITS_MEMBER(mailbox) | 227 IPC_STRUCT_TRAITS_MEMBER(mailbox) |
| 235 IPC_STRUCT_TRAITS_MEMBER(sync_point) | 228 IPC_STRUCT_TRAITS_MEMBER(sync_point) |
| 236 IPC_STRUCT_TRAITS_MEMBER(size) | 229 IPC_STRUCT_TRAITS_MEMBER(size) |
| 237 IPC_STRUCT_TRAITS_END() | 230 IPC_STRUCT_TRAITS_END() |
| 238 | 231 |
| 239 IPC_STRUCT_TRAITS_BEGIN(cc::SoftwareFrameData) | 232 IPC_STRUCT_TRAITS_BEGIN(cc::SoftwareFrameData) |
| 240 IPC_STRUCT_TRAITS_MEMBER(size) | 233 IPC_STRUCT_TRAITS_MEMBER(size) |
| 241 IPC_STRUCT_TRAITS_MEMBER(damage_rect) | 234 IPC_STRUCT_TRAITS_MEMBER(damage_rect) |
| 242 IPC_STRUCT_TRAITS_MEMBER(dib_id) | 235 IPC_STRUCT_TRAITS_MEMBER(dib_id) |
| 243 IPC_STRUCT_TRAITS_END() | 236 IPC_STRUCT_TRAITS_END() |
| OLD | NEW |