blob: 9d5a08ed60f548603c8fdc7e55220ddbd455f130 [file] [log] [blame]
Ahmed Fakhry15d707e2019-02-22 23:54:211// Copyright 2019 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "ui/display/display_features.h"
6
Miguel Casas6193797c2020-09-26 00:29:307#include "build/build_config.h"
8
Ahmed Fakhry15d707e2019-02-22 23:54:219namespace display {
10namespace features {
11
Miguel Casas8821b0982020-07-02 12:28:4912#if defined(OS_CHROMEOS)
13// Enables using HDR transfer function if the monitor says it supports it.
Miguel Casas6193797c2020-09-26 00:29:3014const base::Feature kUseHDRTransferFunction {
15 "UseHDRTransferFunction",
16 // TODO(b/168843009): Temporarily disable on ARM while investigating.
17#if defined(ARCH_CPU_ARM_FAMILY)
18 base::FEATURE_DISABLED_BY_DEFAULT
19#else
20 base::FEATURE_ENABLED_BY_DEFAULT
21#endif
22};
Miguel Casas8821b0982020-07-02 12:28:4923#endif
24
Ahmed Fakhry15d707e2019-02-22 23:54:2125// This features allows listing all display modes of external displays in the
26// display settings and setting any one of them exactly as requested, which can
27// be very useful for debugging and development purposes.
28const base::Feature kListAllDisplayModes = {"ListAllDisplayModes",
Bailey Berro77d415472020-06-12 17:39:1029 base::FEATURE_ENABLED_BY_DEFAULT};
Ahmed Fakhry15d707e2019-02-22 23:54:2130
31bool IsListAllDisplayModesEnabled() {
32 return base::FeatureList::IsEnabled(kListAllDisplayModes);
33}
34
35} // namespace features
36} // namespace display