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

Unified Diff: cc/output/gl_renderer.h

Issue 2088273003: Video Color Managament (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use gfx::ColorProfile 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/output/gl_renderer.h
diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h
index 4e5c59caace131de28e1ef37e28843c7b60716e9..ac19841fceb722ea12abbd8311ef631d9e26bda0 100644
--- a/cc/output/gl_renderer.h
+++ b/cc/output/gl_renderer.h
@@ -11,6 +11,7 @@
#include "base/cancelable_callback.h"
#include "base/macros.h"
#include "cc/base/cc_export.h"
+#include "cc/output/color_lut_cache.h"
#include "cc/output/direct_renderer.h"
#include "cc/output/gl_renderer_draw_cache.h"
#include "cc/output/program_binding.h"
@@ -419,7 +420,8 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
const VideoYUVProgram* GetVideoYUVProgram(TexCoordPrecision precision,
SamplerType sampler,
bool use_alpha_texture,
- bool use_nv12);
+ bool use_nv12,
+ bool use_color_lut);
const VideoStreamTextureProgram* GetVideoStreamTextureProgram(
TexCoordPrecision precision);
@@ -485,7 +487,7 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
[LAST_MASK_VALUE + 1];
VideoYUVProgram video_yuv_program_[LAST_TEX_COORD_PRECISION + 1]
- [LAST_SAMPLER_TYPE + 1][2][2];
+ [LAST_SAMPLER_TYPE + 1][2][2][2];
VideoStreamTextureProgram
video_stream_texture_program_[LAST_TEX_COORD_PRECISION + 1];
@@ -535,6 +537,7 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
// If true, draw a green border after compositing a texture quad using GL.
bool gl_composited_texture_quad_border_;
BoundGeometry bound_geometry_;
+ ColorLUTCache color_lut_cache_;
DISALLOW_COPY_AND_ASSIGN(GLRenderer);
};

Powered by Google App Engine
This is Rietveld 408576698