Ahmed Fakhry | 15d707e | 2019-02-22 23:54:21 | [diff] [blame] | 1 | // 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 | |
| 7 | namespace display { |
| 8 | namespace features { |
| 9 | |
Miguel Casas | 8821b098 | 2020-07-02 12:28:49 | [diff] [blame^] | 10 | #if defined(OS_CHROMEOS) |
| 11 | // Enables using HDR transfer function if the monitor says it supports it. |
| 12 | const base::Feature kUseHDRTransferFunction{"UseHDRTransferFunction", |
| 13 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 14 | #endif |
| 15 | |
Ahmed Fakhry | 15d707e | 2019-02-22 23:54:21 | [diff] [blame] | 16 | // This features allows listing all display modes of external displays in the |
| 17 | // display settings and setting any one of them exactly as requested, which can |
| 18 | // be very useful for debugging and development purposes. |
| 19 | const base::Feature kListAllDisplayModes = {"ListAllDisplayModes", |
Bailey Berro | 77d41547 | 2020-06-12 17:39:10 | [diff] [blame] | 20 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Ahmed Fakhry | 15d707e | 2019-02-22 23:54:21 | [diff] [blame] | 21 | |
| 22 | bool IsListAllDisplayModesEnabled() { |
| 23 | return base::FeatureList::IsEnabled(kListAllDisplayModes); |
| 24 | } |
| 25 | |
| 26 | } // namespace features |
| 27 | } // namespace display |