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

Unified Diff: cc/output/gl_renderer_unittest.cc

Issue 2645953007: cc: Add analytic color conversion to shaders (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | cc/output/program_binding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer_unittest.cc
diff --git a/cc/output/gl_renderer_unittest.cc b/cc/output/gl_renderer_unittest.cc
index 6a4cf6a8e16a79e6c3f0a6e0b6612335b5841444..5dfba33bfac5fb1b853da41f16dd6f2cbe8fcb6e 100644
--- a/cc/output/gl_renderer_unittest.cc
+++ b/cc/output/gl_renderer_unittest.cc
@@ -189,11 +189,12 @@ class GLRendererShaderPixelTest : public GLRendererPixelTest {
UVTextureMode uv_modes[2] = {UV_TEXTURE_MODE_UV, UV_TEXTURE_MODE_U_V};
YUVAlphaTextureMode a_modes[2] = {YUV_NO_ALPHA_TEXTURE,
YUV_HAS_ALPHA_TEXTURE};
- ColorConversionMode c_modes[2] = {COLOR_CONVERSION_MODE_NONE,
- COLOR_CONVERSION_MODE_LUT_FROM_YUV};
+ ColorConversionMode c_modes[3] = {COLOR_CONVERSION_MODE_NONE,
+ COLOR_CONVERSION_MODE_LUT_FROM_YUV,
+ COLOR_CONVERSION_MODE_ANALYTIC};
for (int j = 0; j < 2; j++) {
for (int k = 0; k < 2; k++) {
- for (int l = 0; l < 2; l++) {
+ for (int l = 0; l < 3; l++) {
const Program* program = renderer()->GetProgram(ProgramKey::YUVVideo(
precision, sampler, a_modes[j], uv_modes[k], c_modes[l]));
EXPECT_PROGRAM_VALID(program);
« no previous file with comments | « no previous file | cc/output/program_binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698