diff options
Diffstat (limited to 'cc/layers/video_layer_impl.cc')
-rw-r--r-- | cc/layers/video_layer_impl.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cc/layers/video_layer_impl.cc b/cc/layers/video_layer_impl.cc index 98f2c04..8e9fa02 100644 --- a/cc/layers/video_layer_impl.cc +++ b/cc/layers/video_layer_impl.cc @@ -173,7 +173,7 @@ void VideoLayerImpl::AppendQuads(QuadSink* quad_sink, break; } case VideoFrameExternalResources::YUV_RESOURCE: { - DCHECK_GE(frame_resources_.size(), 3u); + DCHECK_EQ(frame_resources_.size(), 3u); if (frame_resources_.size() < 3u) break; gfx::SizeF tex_scale(tex_width_scale, tex_height_scale); @@ -184,9 +184,7 @@ void VideoLayerImpl::AppendQuads(QuadSink* quad_sink, tex_scale, frame_resources_[0], frame_resources_[1], - frame_resources_[2], - frame_resources_.size() > 3 ? - frame_resources_[3] : 0); + frame_resources_[2]); quad_sink->Append(yuv_video_quad.PassAs<DrawQuad>(), append_quads_data); break; } |