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

Unified Diff: cc/quads/yuv_video_draw_quad.h

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/draw_quad_unittest.cc ('k') | cc/quads/yuv_video_draw_quad.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.h
diff --git a/cc/quads/yuv_video_draw_quad.h b/cc/quads/yuv_video_draw_quad.h
index 2a26e6dbe167c35d5215e7e5a2c7225c373d0fc8..ef07848efdc04b616f8094b81ca3f26efe35d7fa 100644
--- a/cc/quads/yuv_video_draw_quad.h
+++ b/cc/quads/yuv_video_draw_quad.h
@@ -11,6 +11,7 @@
#include "cc/base/cc_export.h"
#include "cc/quads/draw_quad.h"
+#include "ui/gfx/color_space.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/geometry/size.h"
@@ -53,6 +54,7 @@ class CC_EXPORT YUVVideoDrawQuad : public DrawQuad {
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);
@@ -74,6 +76,7 @@ class CC_EXPORT YUVVideoDrawQuad : public DrawQuad {
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);
@@ -86,6 +89,8 @@ class CC_EXPORT YUVVideoDrawQuad : public DrawQuad {
float resource_offset = 0.0f;
float resource_multiplier = 1.0f;
uint32_t bits_per_channel = 8;
+ // TODO(hubbe): Move to ResourceProvider::ScopedSamplerGL.
+ gfx::ColorSpace video_color_space;
static const YUVVideoDrawQuad* MaterialCast(const DrawQuad*);
« no previous file with comments | « cc/quads/draw_quad_unittest.cc ('k') | cc/quads/yuv_video_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698