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

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: log color space 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
« no previous file with comments | « cc/quads/yuv_video_draw_quad.h ('k') | cc/test/render_pass_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a3ac431bbaf5ac8f12603d169d48115f0234584e..abe8d3f37ff1281f0d5704644fa736370f1260a9 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 gfx::ColorSpace& video_color_space,
float offset,
float multiplier,
uint32_t bits_per_channel) {
@@ -47,6 +48,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;
this->bits_per_channel = bits_per_channel;
@@ -66,6 +68,7 @@ void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
unsigned v_plane_resource_id,
unsigned a_plane_resource_id,
ColorSpace color_space,
+ const gfx::ColorSpace& video_color_space,
float offset,
float multiplier,
uint32_t bits_per_channel) {
@@ -81,6 +84,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;
this->bits_per_channel = bits_per_channel;
« no previous file with comments | « cc/quads/yuv_video_draw_quad.h ('k') | cc/test/render_pass_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698