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

Unified Diff: cc/output/gl_renderer.cc

Issue 2773043004: make --enable-hdr imply --enable-features=video-color-management (Closed)
Patch Set: option B Created 3 years, 9 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 | no next file » | 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 2721a8a440270e2e01e2a87228ffbd8a1f84fb95..9518df2ce27d459a0035cc571101da32c90cc1ae 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -2061,9 +2061,9 @@ void GLRenderer::DrawYUVVideoQuad(const YUVVideoDrawQuad* quad,
gfx::ColorSpace src_color_space = quad->video_color_space;
gfx::ColorSpace dst_color_space =
current_frame()->current_render_pass->color_space;
- if (!base::FeatureList::IsEnabled(media::kVideoColorManagement)) {
- if (!settings_->enable_color_correct_rendering)
- dst_color_space = gfx::ColorSpace();
+ if (!base::FeatureList::IsEnabled(media::kVideoColorManagement) &&
+ !settings_->enable_color_correct_rendering) {
+ dst_color_space = gfx::ColorSpace();
switch (quad->color_space) {
case YUVVideoDrawQuad::REC_601:
src_color_space = gfx::ColorSpace::CreateREC601();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698