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

Unified Diff: cc/output/gl_renderer.cc

Issue 2628183002: The great shader refactor: Add YUV support to the uber shader (Closed)
Patch Set: Rebase 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/gl_renderer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index ddfd6b6c8ab2f804d09aa7a23d8ee24c2e7bc5c0..8de061772c69d123f20edd11381e924b51ca0f8e 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -2148,7 +2148,11 @@ void GLRenderer::DrawYUVVideoQuad(const DrawingFrame* frame,
int resource_multiplier_location = -1;
int resource_offset_location = -1;
const Program* program = GetProgram(ProgramKey::YUVVideo(
- tex_coord_precision, sampler, use_alpha_plane, use_nv12, use_color_lut));
+ tex_coord_precision, sampler,
+ use_alpha_plane ? YUV_HAS_ALPHA_TEXTURE : YUV_NO_ALPHA_TEXTURE,
+ use_nv12 ? UV_TEXTURE_MODE_UV : UV_TEXTURE_MODE_U_V,
+ use_color_lut ? COLOR_CONVERSION_MODE_2D_LUT_AS_3D_FROM_YUV
+ : COLOR_CONVERSION_MODE_NONE));
DCHECK(program && (program->initialized() || IsContextLost()));
SetUseProgram(program->program());
matrix_location = program->matrix_location();
« no previous file with comments | « no previous file | cc/output/gl_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698