Avi Drissman | 3e1a26c | 2022-09-15 20:26:03 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors |
[email protected] | 0d3b9dd | 2012-11-14 04:14:48 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef UI_GFX_SWITCHES_H_ | ||||
6 | #define UI_GFX_SWITCHES_H_ | ||||
7 | |||||
Christopher Cameron | 0b2da25 | 2021-06-29 23:40:49 | [diff] [blame] | 8 | #include "base/feature_list.h" |
ananta | 8150ea6 | 2014-10-10 22:57:59 | [diff] [blame] | 9 | #include "build/build_config.h" |
ccameron | fd83a51 | 2017-06-16 21:26:12 | [diff] [blame] | 10 | #include "ui/gfx/switches_export.h" |
[email protected] | 0d3b9dd | 2012-11-14 04:14:48 | [diff] [blame] | 11 | |
[email protected] | 0d3b9dd | 2012-11-14 04:14:48 | [diff] [blame] | 12 | namespace switches { |
13 | |||||
Peter Kasting | c6fd7f2d | 2020-03-10 21:21:08 | [diff] [blame] | 14 | GFX_SWITCHES_EXPORT extern const char kAnimationDurationScale[]; |
Malay Keshav | f00044b | 2018-05-15 17:30:30 | [diff] [blame] | 15 | GFX_SWITCHES_EXPORT extern const char kDisableFontSubpixelPositioning[]; |
Sergey Ulanov | 5c3bff6 | 2019-04-20 07:53:26 | [diff] [blame] | 16 | GFX_SWITCHES_EXPORT extern const char kEnableNativeGpuMemoryBuffers[]; |
Peter Kasting | c6fd7f2d | 2020-03-10 21:21:08 | [diff] [blame] | 17 | GFX_SWITCHES_EXPORT extern const char kForcePrefersReducedMotion[]; |
Andrea Orru | 1dbbcce | 2024-02-20 22:50:50 | [diff] [blame] | 18 | GFX_SWITCHES_EXPORT extern const char kForcePrefersNoReducedMotion[]; |
Peter Kasting | c6fd7f2d | 2020-03-10 21:21:08 | [diff] [blame] | 19 | GFX_SWITCHES_EXPORT extern const char kHeadless[]; |
Peter Kvitek | 3285b449 | 2025-05-05 22:32:42 | [diff] [blame] | 20 | GFX_SWITCHES_EXPORT extern const char kScreenInfo[]; |
Maksim Sisov | 7b59923 | 2021-11-04 20:41:38 | [diff] [blame] | 21 | |
Xiaohan Wang | d1b0e6b | 2022-01-20 21:40:20 | [diff] [blame] | 22 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) |
Maksim Sisov | 7b59923 | 2021-11-04 20:41:38 | [diff] [blame] | 23 | GFX_SWITCHES_EXPORT extern const char kX11Display[]; |
24 | GFX_SWITCHES_EXPORT extern const char kNoXshm[]; | ||||
25 | #endif | ||||
26 | |||||
[email protected] | 0d3b9dd | 2012-11-14 04:14:48 | [diff] [blame] | 27 | } // namespace switches |
[email protected] | 0d3b9dd | 2012-11-14 04:14:48 | [diff] [blame] | 28 | |
Christopher Cameron | 0b2da25 | 2021-06-29 23:40:49 | [diff] [blame] | 29 | namespace features { |
Sean Kau | 5c70cf6 | 2023-02-02 23:56:13 | [diff] [blame] | 30 | |
Daniel Cheng | 849f6a54 | 2022-09-21 16:56:03 | [diff] [blame] | 31 | GFX_SWITCHES_EXPORT BASE_DECLARE_FEATURE(kOddHeightMultiPlanarBuffers); |
32 | GFX_SWITCHES_EXPORT BASE_DECLARE_FEATURE(kOddWidthMultiPlanarBuffers); | ||||
Peter McNeeley | aa0ebcaf | 2023-09-12 17:25:50 | [diff] [blame] | 33 | GFX_SWITCHES_EXPORT BASE_DECLARE_FEATURE(kUseSmartRefForGPUFenceHandle); |
Sean Kau | 5c70cf6 | 2023-02-02 23:56:13 | [diff] [blame] | 34 | |
Christopher Cameron | 494fe24a | 2025-05-06 14:49:37 | [diff] [blame] | 35 | GFX_SWITCHES_EXPORT BASE_DECLARE_FEATURE(kHdrAgtm); |
36 | |||||
Christopher Cameron | 0b2da25 | 2021-06-29 23:40:49 | [diff] [blame] | 37 | } // namespace features |
38 | |||||
[email protected] | 0d3b9dd | 2012-11-14 04:14:48 | [diff] [blame] | 39 | #endif // UI_GFX_SWITCHES_H_ |