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

Unified Diff: cc/quads/yuv_video_draw_quad.cc

Issue 2088273003: Video Color Managament (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bugfix Created 4 years, 5 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..c867a42b8fd63b0911b96552f50e2602008d04ef 100644
--- a/cc/quads/yuv_video_draw_quad.cc
+++ b/cc/quads/yuv_video_draw_quad.cc
@@ -31,6 +31,7 @@ void YUVVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
unsigned v_plane_resource_id,
unsigned a_plane_resource_id,
ColorSpace color_space,
+ const media::VideoColorSpace& video_color_space,
float offset,
float multiplier) {
bool needs_blending = false;
@@ -46,6 +47,7 @@ void YUVVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
resources.ids[kAPlaneResourceIdIndex] = a_plane_resource_id;
resources.count = a_plane_resource_id ? 4 : 3;
this->color_space = color_space;
+ this->video_color_space = video_color_space;
this->resource_offset = offset;
this->resource_multiplier = multiplier;
}
@@ -64,6 +66,7 @@ void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
unsigned v_plane_resource_id,
unsigned a_plane_resource_id,
ColorSpace color_space,
+ const media::VideoColorSpace& video_color_space,
float offset,
float multiplier) {
DrawQuad::SetAll(shared_quad_state, DrawQuad::YUV_VIDEO_CONTENT, rect,
@@ -78,6 +81,7 @@ void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
resources.ids[kAPlaneResourceIdIndex] = a_plane_resource_id;
resources.count = resources.ids[kAPlaneResourceIdIndex] ? 4 : 3;
this->color_space = color_space;
+ this->video_color_space = video_color_space;
this->resource_offset = offset;
this->resource_multiplier = multiplier;
}

Powered by Google App Engine
This is Rietveld 408576698