| 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 7876861bd878578bf38d9e91a4d3db3fb4c9f024..f63c6120c5f3c14f611a747071f68186cd517b54 100644
|
| --- a/cc/quads/yuv_video_draw_quad.cc
|
| +++ b/cc/quads/yuv_video_draw_quad.cc
|
| @@ -8,7 +8,10 @@
|
|
|
| namespace cc {
|
|
|
| -YUVVideoDrawQuad::YUVVideoDrawQuad() {}
|
| +YUVVideoDrawQuad::YUVVideoDrawQuad()
|
| + : y_plane_resource_id(0),
|
| + u_plane_resource_id(0),
|
| + v_plane_resource_id(0) {}
|
| YUVVideoDrawQuad::~YUVVideoDrawQuad() {}
|
|
|
| scoped_ptr<YUVVideoDrawQuad> YUVVideoDrawQuad::Create() {
|
| @@ -19,17 +22,17 @@ void YUVVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
|
| gfx::Rect rect,
|
| gfx::Rect opaque_rect,
|
| gfx::SizeF tex_scale,
|
| - const VideoLayerImpl::FramePlane& y_plane,
|
| - const VideoLayerImpl::FramePlane& u_plane,
|
| - const VideoLayerImpl::FramePlane& v_plane) {
|
| + unsigned y_plane_resource_id,
|
| + unsigned u_plane_resource_id,
|
| + unsigned v_plane_resource_id) {
|
| gfx::Rect visible_rect = rect;
|
| bool needs_blending = false;
|
| DrawQuad::SetAll(shared_quad_state, DrawQuad::YUV_VIDEO_CONTENT, rect,
|
| opaque_rect, visible_rect, needs_blending);
|
| this->tex_scale = tex_scale;
|
| - this->y_plane = y_plane;
|
| - this->u_plane = u_plane;
|
| - this->v_plane = v_plane;
|
| + 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;
|
| }
|
|
|
| void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
|
| @@ -38,22 +41,22 @@ void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
|
| gfx::Rect visible_rect,
|
| bool needs_blending,
|
| gfx::SizeF tex_scale,
|
| - const VideoLayerImpl::FramePlane& y_plane,
|
| - const VideoLayerImpl::FramePlane& u_plane,
|
| - const VideoLayerImpl::FramePlane& v_plane) {
|
| + unsigned y_plane_resource_id,
|
| + unsigned u_plane_resource_id,
|
| + unsigned v_plane_resource_id) {
|
| DrawQuad::SetAll(shared_quad_state, DrawQuad::YUV_VIDEO_CONTENT, rect,
|
| opaque_rect, visible_rect, needs_blending);
|
| this->tex_scale = tex_scale;
|
| - this->y_plane = y_plane;
|
| - this->u_plane = u_plane;
|
| - this->v_plane = v_plane;
|
| + 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;
|
| }
|
|
|
| void YUVVideoDrawQuad::IterateResources(
|
| const ResourceIteratorCallback& callback) {
|
| - y_plane.resource_id = callback.Run(y_plane.resource_id);
|
| - u_plane.resource_id = callback.Run(u_plane.resource_id);
|
| - v_plane.resource_id = callback.Run(v_plane.resource_id);
|
| + y_plane_resource_id = callback.Run(y_plane_resource_id);
|
| + u_plane_resource_id = callback.Run(u_plane_resource_id);
|
| + v_plane_resource_id = callback.Run(v_plane_resource_id);
|
| }
|
|
|
| const YUVVideoDrawQuad* YUVVideoDrawQuad::MaterialCast(
|
|
|