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

Unified Diff: cc/output/gl_renderer.cc

Issue 2773043004: make --enable-hdr imply --enable-features=video-color-management (Closed)
Patch Set: 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 | « cc/DEPS ('k') | 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..4c6df372759704038f04bedee6f97af1f6a110c8 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -15,6 +15,7 @@
#include <string>
#include <vector>
+#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/logging.h"
#include "base/macros.h"
@@ -62,6 +63,7 @@
#include "third_party/skia/include/gpu/GrContext.h"
#include "third_party/skia/include/gpu/gl/GrGLInterface.h"
#include "third_party/skia/include/gpu/gl/GrGLTypes.h"
+#include "ui/display/display_switches.h"
#include "ui/gfx/color_space.h"
#include "ui/gfx/color_transform.h"
#include "ui/gfx/geometry/quad_f.h"
@@ -2061,7 +2063,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 (!base::FeatureList::IsEnabled(media::kVideoColorManagement) &&
+ !base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableHDR)) {
ccameron 2017/03/25 00:19:13 Settings are sent to cc/ via the cc::RendererSetti
hubbe 2017/03/27 21:35:17 option B sounds good.
if (!settings_->enable_color_correct_rendering)
dst_color_space = gfx::ColorSpace();
switch (quad->color_space) {
« no previous file with comments | « cc/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698