| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/yuv_video_draw_quad.h" | 5 #include "cc/yuv_video_draw_quad.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace cc { | 9 namespace cc { |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 yPlane, uPlane, vPlane)); | 21 yPlane, uPlane, vPlane)); |
| 22 } | 22 } |
| 23 | 23 |
| 24 YUVVideoDrawQuad::YUVVideoDrawQuad( | 24 YUVVideoDrawQuad::YUVVideoDrawQuad( |
| 25 const SharedQuadState* sharedQuadState, | 25 const SharedQuadState* sharedQuadState, |
| 26 const gfx::Rect& quadRect, | 26 const gfx::Rect& quadRect, |
| 27 const gfx::SizeF& texScale, | 27 const gfx::SizeF& texScale, |
| 28 const VideoLayerImpl::FramePlane& yPlane, | 28 const VideoLayerImpl::FramePlane& yPlane, |
| 29 const VideoLayerImpl::FramePlane& uPlane, | 29 const VideoLayerImpl::FramePlane& uPlane, |
| 30 const VideoLayerImpl::FramePlane& vPlane) | 30 const VideoLayerImpl::FramePlane& vPlane) |
| 31 : DrawQuad(sharedQuadState, DrawQuad::YUVVideoContent, quadRect) | 31 : DrawQuad(sharedQuadState, DrawQuad::YUV_VIDEO_CONTENT, quadRect) |
| 32 , m_texScale(texScale) | 32 , m_texScale(texScale) |
| 33 , m_yPlane(yPlane) | 33 , m_yPlane(yPlane) |
| 34 , m_uPlane(uPlane) | 34 , m_uPlane(uPlane) |
| 35 , m_vPlane(vPlane) | 35 , m_vPlane(vPlane) |
| 36 { | 36 { |
| 37 } | 37 } |
| 38 | 38 |
| 39 YUVVideoDrawQuad::~YUVVideoDrawQuad() | 39 YUVVideoDrawQuad::~YUVVideoDrawQuad() |
| 40 { | 40 { |
| 41 } | 41 } |
| 42 | 42 |
| 43 const YUVVideoDrawQuad* YUVVideoDrawQuad::materialCast(const DrawQuad* quad) | 43 const YUVVideoDrawQuad* YUVVideoDrawQuad::materialCast(const DrawQuad* quad) |
| 44 { | 44 { |
| 45 DCHECK(quad->material() == DrawQuad::YUVVideoContent); | 45 DCHECK(quad->material() == DrawQuad::YUV_VIDEO_CONTENT); |
| 46 return static_cast<const YUVVideoDrawQuad*>(quad); | 46 return static_cast<const YUVVideoDrawQuad*>(quad); |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace cc | 49 } // namespace cc |
| OLD | NEW |