Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Unified Diff: cc/yuv_video_draw_quad.cc

Issue 11269017: Plumb through cropped output size for VideoFrame (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/yuv_video_draw_quad.cc
diff --git a/cc/yuv_video_draw_quad.cc b/cc/yuv_video_draw_quad.cc
index 38ba85ff628eca0f81efc6ee4bc5261e2f41693f..e48df47dc154f21fcb1ac53eedc118e44ba312c8 100644
--- a/cc/yuv_video_draw_quad.cc
+++ b/cc/yuv_video_draw_quad.cc
@@ -10,13 +10,28 @@
namespace cc {
-scoped_ptr<YUVVideoDrawQuad> YUVVideoDrawQuad::create(const SharedQuadState* sharedQuadState, const gfx::Rect& quadRect, const VideoLayerImpl::FramePlane& yPlane, const VideoLayerImpl::FramePlane& uPlane, const VideoLayerImpl::FramePlane& vPlane)
+scoped_ptr<YUVVideoDrawQuad> YUVVideoDrawQuad::create(
+ const SharedQuadState* sharedQuadState,
+ const gfx::Rect& quadRect,
+ const gfx::SizeF& texScale,
+ const VideoLayerImpl::FramePlane& yPlane,
+ const VideoLayerImpl::FramePlane& uPlane,
+ const VideoLayerImpl::FramePlane& vPlane)
{
- return make_scoped_ptr(new YUVVideoDrawQuad(sharedQuadState, quadRect, yPlane, uPlane, vPlane));
+ return make_scoped_ptr(new YUVVideoDrawQuad(sharedQuadState,
+ quadRect, texScale,
+ yPlane, uPlane, vPlane));
}
-YUVVideoDrawQuad::YUVVideoDrawQuad(const SharedQuadState* sharedQuadState, const gfx::Rect& quadRect, const VideoLayerImpl::FramePlane& yPlane, const VideoLayerImpl::FramePlane& uPlane, const VideoLayerImpl::FramePlane& vPlane)
+YUVVideoDrawQuad::YUVVideoDrawQuad(
+ const SharedQuadState* sharedQuadState,
+ const gfx::Rect& quadRect,
+ const gfx::SizeF& texScale,
+ const VideoLayerImpl::FramePlane& yPlane,
+ const VideoLayerImpl::FramePlane& uPlane,
+ const VideoLayerImpl::FramePlane& vPlane)
: DrawQuad(sharedQuadState, DrawQuad::YUVVideoContent, quadRect)
+ , m_texScale(texScale)
, m_yPlane(yPlane)
, m_uPlane(uPlane)
, m_vPlane(vPlane)

Powered by Google App Engine
This is Rietveld 408576698