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

Unified Diff: cc/quads/yuv_video_draw_quad.cc

Issue 2173563002: Improve GL shader YUV adjustment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use enum hack Created 4 years, 4 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.cc
diff --git a/cc/quads/yuv_video_draw_quad.cc b/cc/quads/yuv_video_draw_quad.cc
index b5029713adeef38790dee2d9d21f4eb6e7a31015..a3ac431bbaf5ac8f12603d169d48115f0234584e 100644
--- a/cc/quads/yuv_video_draw_quad.cc
+++ b/cc/quads/yuv_video_draw_quad.cc
@@ -32,7 +32,8 @@ void YUVVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
unsigned a_plane_resource_id,
ColorSpace color_space,
float offset,
- float multiplier) {
+ float multiplier,
+ uint32_t bits_per_channel) {
bool needs_blending = false;
DrawQuad::SetAll(shared_quad_state, DrawQuad::YUV_VIDEO_CONTENT, rect,
opaque_rect, visible_rect, needs_blending);
@@ -48,6 +49,7 @@ void YUVVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
this->color_space = color_space;
this->resource_offset = offset;
this->resource_multiplier = multiplier;
+ this->bits_per_channel = bits_per_channel;
}
void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
@@ -65,7 +67,8 @@ void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
unsigned a_plane_resource_id,
ColorSpace color_space,
float offset,
- float multiplier) {
+ float multiplier,
+ uint32_t bits_per_channel) {
DrawQuad::SetAll(shared_quad_state, DrawQuad::YUV_VIDEO_CONTENT, rect,
opaque_rect, visible_rect, needs_blending);
this->ya_tex_coord_rect = ya_tex_coord_rect;
@@ -80,6 +83,7 @@ void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
this->color_space = color_space;
this->resource_offset = offset;
this->resource_multiplier = multiplier;
+ this->bits_per_channel = bits_per_channel;
}
const YUVVideoDrawQuad* YUVVideoDrawQuad::MaterialCast(

Powered by Google App Engine
This is Rietveld 408576698