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

Unified Diff: cc/quads/yuv_video_draw_quad.h

Issue 1008493002: Increase YUV video clamping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: individual ya and uv texture size Created 5 years, 9 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/quads/yuv_video_draw_quad.h
diff --git a/cc/quads/yuv_video_draw_quad.h b/cc/quads/yuv_video_draw_quad.h
index 358929e36e47960c2fed4e8155283cd15dbccc69..39780c33e7e2f1044a12751a54c3016f2b554065 100644
--- a/cc/quads/yuv_video_draw_quad.h
+++ b/cc/quads/yuv_video_draw_quad.h
@@ -31,7 +31,8 @@ class CC_EXPORT YUVVideoDrawQuad : public DrawQuad {
const gfx::Rect& opaque_rect,
const gfx::Rect& visible_rect,
const gfx::RectF& tex_coord_rect,
- const gfx::Size& tex_size,
+ const gfx::Size& ya_tex_size,
+ const gfx::Size& uv_tex_size,
unsigned y_plane_resource_id,
unsigned u_plane_resource_id,
unsigned v_plane_resource_id,
@@ -44,7 +45,8 @@ class CC_EXPORT YUVVideoDrawQuad : public DrawQuad {
const gfx::Rect& visible_rect,
bool needs_blending,
const gfx::RectF& tex_coord_rect,
- const gfx::Size& tex_size,
+ const gfx::Size& ya_tex_size,
+ const gfx::Size& uv_tex_size,
unsigned y_plane_resource_id,
unsigned u_plane_resource_id,
unsigned v_plane_resource_id,
@@ -53,7 +55,8 @@ class CC_EXPORT YUVVideoDrawQuad : public DrawQuad {
gfx::RectF tex_coord_rect;
// Empty texture size implies no clamping of texture coordinates.
- gfx::Size tex_size;
+ gfx::Size ya_tex_size;
+ gfx::Size uv_tex_size;
unsigned y_plane_resource_id;
unsigned u_plane_resource_id;
unsigned v_plane_resource_id;

Powered by Google App Engine
This is Rietveld 408576698