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

Unified Diff: cc/yuv_video_draw_quad.h

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.h
diff --git a/cc/yuv_video_draw_quad.h b/cc/yuv_video_draw_quad.h
index b1caae1550717a1e26c7af68b86223940c946b39..665447f9b53e8afb4c286fe608374477bd66de65 100644
--- a/cc/yuv_video_draw_quad.h
+++ b/cc/yuv_video_draw_quad.h
@@ -14,7 +14,15 @@ namespace cc {
class YUVVideoDrawQuad : public DrawQuad {
public:
- static scoped_ptr<YUVVideoDrawQuad> create(const SharedQuadState*, const gfx::Rect&, const VideoLayerImpl::FramePlane& yPlane, const VideoLayerImpl::FramePlane& uPlane, const VideoLayerImpl::FramePlane& vPlane);
+ static scoped_ptr<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);
+
+ const gfx::SizeF& texScale() const { return m_texScale; }
const VideoLayerImpl::FramePlane& yPlane() const { return m_yPlane; }
const VideoLayerImpl::FramePlane& uPlane() const { return m_uPlane; }
@@ -22,8 +30,15 @@ public:
static const YUVVideoDrawQuad* materialCast(const DrawQuad*);
private:
- YUVVideoDrawQuad(const SharedQuadState*, const gfx::Rect&, const VideoLayerImpl::FramePlane& yPlane, const VideoLayerImpl::FramePlane& uPlane, const VideoLayerImpl::FramePlane& vPlane);
-
+ YUVVideoDrawQuad(
+ const SharedQuadState* sharedQuadState,
+ const gfx::Rect& quadRect,
+ const gfx::SizeF& texScale,
+ const VideoLayerImpl::FramePlane& yPlane,
+ const VideoLayerImpl::FramePlane& uPlane,
+ const VideoLayerImpl::FramePlane& vPlane);
+
+ gfx::SizeF m_texScale;
VideoLayerImpl::FramePlane m_yPlane;
VideoLayerImpl::FramePlane m_uPlane;
VideoLayerImpl::FramePlane m_vPlane;

Powered by Google App Engine
This is Rietveld 408576698