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 5d0fc55484e0ab8247514f940f2211c32d0bf0d5..38b726d9987a652eb2737678c14f6c9935423f92 100644 |
--- a/cc/quads/yuv_video_draw_quad.cc |
+++ b/cc/quads/yuv_video_draw_quad.cc |
@@ -23,6 +23,7 @@ void YUVVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state, |
const gfx::Rect& opaque_rect, |
const gfx::Rect& visible_rect, |
const gfx::RectF& tex_coord_rect, |
+ const gfx::Size& tex_size, |
unsigned y_plane_resource_id, |
unsigned u_plane_resource_id, |
unsigned v_plane_resource_id, |
@@ -32,6 +33,7 @@ void YUVVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state, |
DrawQuad::SetAll(shared_quad_state, DrawQuad::YUV_VIDEO_CONTENT, rect, |
opaque_rect, visible_rect, needs_blending); |
this->tex_coord_rect = tex_coord_rect; |
+ this->tex_size = tex_size; |
this->y_plane_resource_id = y_plane_resource_id; |
this->u_plane_resource_id = u_plane_resource_id; |
this->v_plane_resource_id = v_plane_resource_id; |
@@ -45,6 +47,7 @@ void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state, |
const gfx::Rect& visible_rect, |
bool needs_blending, |
const gfx::RectF& tex_coord_rect, |
+ const gfx::Size& tex_size, |
unsigned y_plane_resource_id, |
unsigned u_plane_resource_id, |
unsigned v_plane_resource_id, |
@@ -53,6 +56,7 @@ void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state, |
DrawQuad::SetAll(shared_quad_state, DrawQuad::YUV_VIDEO_CONTENT, rect, |
opaque_rect, visible_rect, needs_blending); |
this->tex_coord_rect = tex_coord_rect; |
+ this->tex_size = tex_size; |
this->y_plane_resource_id = y_plane_resource_id; |
this->u_plane_resource_id = u_plane_resource_id; |
this->v_plane_resource_id = v_plane_resource_id; |
@@ -77,6 +81,7 @@ const YUVVideoDrawQuad* YUVVideoDrawQuad::MaterialCast( |
void YUVVideoDrawQuad::ExtendValue(base::debug::TracedValue* value) const { |
MathUtil::AddToTracedValue("tex_coord_rect", tex_coord_rect, value); |
+ MathUtil::AddToTracedValue("tex_size", tex_size, value); |
value->SetInteger("y_plane_resource_id", y_plane_resource_id); |
value->SetInteger("u_plane_resource_id", u_plane_resource_id); |
value->SetInteger("v_plane_resource_id", v_plane_resource_id); |