blob: ed92adc9ff94621d3efd7a7b943d29c71d12bf4f [file] [log] [blame]
Avi Drissman3e1a26c2022-09-15 20:26:031// Copyright 2012 The Chromium Authors
[email protected]0d3b9dd2012-11-14 04:14:482// 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 Cameron0b2da252021-06-29 23:40:498#include "base/feature_list.h"
ananta8150ea62014-10-10 22:57:599#include "build/build_config.h"
Sean Kau5c70cf62023-02-02 23:56:1310#include "build/chromeos_buildflags.h"
ccameronfd83a512017-06-16 21:26:1211#include "ui/gfx/switches_export.h"
[email protected]0d3b9dd2012-11-14 04:14:4812
[email protected]0d3b9dd2012-11-14 04:14:4813namespace switches {
14
Peter Kastingc6fd7f2d2020-03-10 21:21:0815GFX_SWITCHES_EXPORT extern const char kAnimationDurationScale[];
Malay Keshavf00044b2018-05-15 17:30:3016GFX_SWITCHES_EXPORT extern const char kDisableFontSubpixelPositioning[];
Sergey Ulanov5c3bff62019-04-20 07:53:2617GFX_SWITCHES_EXPORT extern const char kEnableNativeGpuMemoryBuffers[];
Peter Kastingc6fd7f2d2020-03-10 21:21:0818GFX_SWITCHES_EXPORT extern const char kForcePrefersReducedMotion[];
Andrea Orru1dbbcce2024-02-20 22:50:5019GFX_SWITCHES_EXPORT extern const char kForcePrefersNoReducedMotion[];
Peter Kastingc6fd7f2d2020-03-10 21:21:0820GFX_SWITCHES_EXPORT extern const char kHeadless[];
Maksim Sisov7b599232021-11-04 20:41:3821
Xiaohan Wangd1b0e6b2022-01-20 21:40:2022#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
Maksim Sisov7b599232021-11-04 20:41:3823GFX_SWITCHES_EXPORT extern const char kX11Display[];
24GFX_SWITCHES_EXPORT extern const char kNoXshm[];
25#endif
26
[email protected]0d3b9dd2012-11-14 04:14:4827} // namespace switches
[email protected]0d3b9dd2012-11-14 04:14:4828
Christopher Cameron0b2da252021-06-29 23:40:4929namespace features {
Sean Kau5c70cf62023-02-02 23:56:1330
Daniel Cheng849f6a542022-09-21 16:56:0331GFX_SWITCHES_EXPORT BASE_DECLARE_FEATURE(kOddHeightMultiPlanarBuffers);
32GFX_SWITCHES_EXPORT BASE_DECLARE_FEATURE(kOddWidthMultiPlanarBuffers);
Peter McNeeleyaa0ebcaf2023-09-12 17:25:5033GFX_SWITCHES_EXPORT BASE_DECLARE_FEATURE(kUseSmartRefForGPUFenceHandle);
Sean Kau5c70cf62023-02-02 23:56:1334
Hang Nguyen9d6939d2023-10-11 20:45:0335#if BUILDFLAG(IS_CHROMEOS)
36GFX_SWITCHES_EXPORT BASE_DECLARE_FEATURE(kEnableIntelMediaCompression);
37#endif
38
Christopher Cameron0b2da252021-06-29 23:40:4939} // namespace features
40
[email protected]0d3b9dd2012-11-14 04:14:4841#endif // UI_GFX_SWITCHES_H_