| Index: cc/quads/yuv_video_draw_quad.cc
|
| diff --git a/cc/quads/yuv_video_draw_quad.cc b/cc/quads/yuv_video_draw_quad.cc
|
| index 483cc245df8c30efbfec89acb6d4240849dd25cd..5706f288cd5791287fbcbc9a7d42fd293503a412 100644
|
| --- a/cc/quads/yuv_video_draw_quad.cc
|
| +++ b/cc/quads/yuv_video_draw_quad.cc
|
| @@ -22,7 +22,8 @@ void YUVVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
|
| const gfx::Rect& rect,
|
| const gfx::Rect& opaque_rect,
|
| const gfx::Rect& visible_rect,
|
| - const gfx::RectF& tex_coord_rect,
|
| + const gfx::RectF& ya_tex_coord_rect,
|
| + const gfx::RectF& uv_tex_coord_rect,
|
| const gfx::Size& ya_tex_size,
|
| const gfx::Size& uv_tex_size,
|
| unsigned y_plane_resource_id,
|
| @@ -33,7 +34,8 @@ void YUVVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
|
| bool needs_blending = false;
|
| DrawQuad::SetAll(shared_quad_state, DrawQuad::YUV_VIDEO_CONTENT, rect,
|
| opaque_rect, visible_rect, needs_blending);
|
| - this->tex_coord_rect = tex_coord_rect;
|
| + this->ya_tex_coord_rect = ya_tex_coord_rect;
|
| + this->uv_tex_coord_rect = uv_tex_coord_rect;
|
| this->ya_tex_size = ya_tex_size;
|
| this->uv_tex_size = uv_tex_size;
|
| this->y_plane_resource_id = y_plane_resource_id;
|
| @@ -48,7 +50,8 @@ void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
|
| const gfx::Rect& opaque_rect,
|
| const gfx::Rect& visible_rect,
|
| bool needs_blending,
|
| - const gfx::RectF& tex_coord_rect,
|
| + const gfx::RectF& ya_tex_coord_rect,
|
| + const gfx::RectF& uv_tex_coord_rect,
|
| const gfx::Size& ya_tex_size,
|
| const gfx::Size& uv_tex_size,
|
| unsigned y_plane_resource_id,
|
| @@ -58,7 +61,8 @@ void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
|
| ColorSpace color_space) {
|
| DrawQuad::SetAll(shared_quad_state, DrawQuad::YUV_VIDEO_CONTENT, rect,
|
| opaque_rect, visible_rect, needs_blending);
|
| - this->tex_coord_rect = tex_coord_rect;
|
| + this->ya_tex_coord_rect = ya_tex_coord_rect;
|
| + this->uv_tex_coord_rect = uv_tex_coord_rect;
|
| this->ya_tex_size = ya_tex_size;
|
| this->uv_tex_size = uv_tex_size;
|
| this->y_plane_resource_id = y_plane_resource_id;
|
| @@ -85,7 +89,8 @@ const YUVVideoDrawQuad* YUVVideoDrawQuad::MaterialCast(
|
|
|
| void YUVVideoDrawQuad::ExtendValue(
|
| base::trace_event::TracedValue* value) const {
|
| - MathUtil::AddToTracedValue("tex_coord_rect", tex_coord_rect, value);
|
| + MathUtil::AddToTracedValue("ya_tex_coord_rect", ya_tex_coord_rect, value);
|
| + MathUtil::AddToTracedValue("uv_tex_coord_rect", uv_tex_coord_rect, value);
|
| MathUtil::AddToTracedValue("ya_tex_size", ya_tex_size, value);
|
| MathUtil::AddToTracedValue("uv_tex_size", uv_tex_size, value);
|
| value->SetInteger("y_plane_resource_id", y_plane_resource_id);
|
|
|