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

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: Found the windows failure, and fixed it. Thanks akalin@ Created 8 years, 1 month 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
« no previous file with comments | « cc/yuv_video_draw_quad.h ('k') | content/renderer/media/local_video_capture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ff60e1e707b91afe2ff9795690ad9b1f6052e92b 100644
--- a/cc/yuv_video_draw_quad.cc
+++ b/cc/yuv_video_draw_quad.cc
@@ -10,19 +10,38 @@
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)
{
}
+YUVVideoDrawQuad::~YUVVideoDrawQuad()
+{
+}
+
const YUVVideoDrawQuad* YUVVideoDrawQuad::materialCast(const DrawQuad* quad)
{
DCHECK(quad->material() == DrawQuad::YUVVideoContent);
« no previous file with comments | « cc/yuv_video_draw_quad.h ('k') | content/renderer/media/local_video_capture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698