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

Unified Diff: chrome/browser/about_flags.cc

Issue 2785433003: Add --enable-hdr to about:flags (Closed)
Patch Set: update histograms.xml 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 | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index c33cfb5b45c39b76835c70a4a4a8b33cf8bd5114..e05736b6b545e36a3ff8424f06a7e6d43e2ec19d 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -129,6 +129,10 @@
#include "ui/ozone/public/ozone_switches.h"
#endif // USE_OZONE
+#if defined(OS_WIN)
+#include "base/win/windows_version.h"
+#endif // OS_WIN
+
using flags_ui::FeatureEntry;
using flags_ui::kOsMac;
using flags_ui::kOsWin;
@@ -1119,6 +1123,13 @@ const FeatureEntry kFeatureEntries[] = {
kOsMac | kOsWin | kOsCrOS | kOsAndroid,
SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedVideoDecode),
},
+#if defined(OS_WIN)
+ {
+ "enable-hdr", flag_descriptions::kEnableHDRName,
+ flag_descriptions::kEnableHDRDescription, kOsWin,
+ SINGLE_VALUE_TYPE(switches::kEnableHDR),
+ },
+#endif // OS_WIN
#if defined(USE_ASH)
{
"ash-debug-shortcuts", flag_descriptions::kDebugShortcutsName,
@@ -2547,6 +2558,14 @@ bool SkipConditionalFeatureEntry(const FeatureEntry& entry) {
return true;
}
+#if defined(OS_WIN)
+ // HDR mode works, but displays everything horribly wrong prior to windows 10.
+ if (!strcmp("enable-hdr", entry.internal_name) &&
+ base::win::GetVersion() < base::win::Version::VERSION_WIN10) {
+ return true;
+ }
+#endif // OS_WIN
+
return false;
}
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698