summaryrefslogtreecommitdiffstats
path: root/cc/quads/yuv_video_draw_quad.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/quads/yuv_video_draw_quad.cc')
-rw-r--r--cc/quads/yuv_video_draw_quad.cc13
1 files changed, 3 insertions, 10 deletions
diff --git a/cc/quads/yuv_video_draw_quad.cc b/cc/quads/yuv_video_draw_quad.cc
index 2ac75dc..f63c612 100644
--- a/cc/quads/yuv_video_draw_quad.cc
+++ b/cc/quads/yuv_video_draw_quad.cc
@@ -11,8 +11,7 @@ namespace cc {
YUVVideoDrawQuad::YUVVideoDrawQuad()
: y_plane_resource_id(0),
u_plane_resource_id(0),
- v_plane_resource_id(0),
- a_plane_resource_id(0) {}
+ v_plane_resource_id(0) {}
YUVVideoDrawQuad::~YUVVideoDrawQuad() {}
scoped_ptr<YUVVideoDrawQuad> YUVVideoDrawQuad::Create() {
@@ -25,8 +24,7 @@ void YUVVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
gfx::SizeF tex_scale,
unsigned y_plane_resource_id,
unsigned u_plane_resource_id,
- unsigned v_plane_resource_id,
- unsigned a_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,
@@ -35,7 +33,6 @@ void YUVVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
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;
- this->a_plane_resource_id = a_plane_resource_id;
}
void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
@@ -46,15 +43,13 @@ void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
gfx::SizeF tex_scale,
unsigned y_plane_resource_id,
unsigned u_plane_resource_id,
- unsigned v_plane_resource_id,
- unsigned a_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_resource_id = y_plane_resource_id;
this->u_plane_resource_id = u_plane_resource_id;
this->v_plane_resource_id = v_plane_resource_id;
- this->a_plane_resource_id = a_plane_resource_id;
}
void YUVVideoDrawQuad::IterateResources(
@@ -62,8 +57,6 @@ void YUVVideoDrawQuad::IterateResources(
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);
- if (a_plane_resource_id)
- a_plane_resource_id = callback.Run(a_plane_resource_id);
}
const YUVVideoDrawQuad* YUVVideoDrawQuad::MaterialCast(