blob: 98697d908f507e30ffbe0e5f5996afb7856f7c12 [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[];
19GFX_SWITCHES_EXPORT extern const char kHeadless[];
Maksim Sisov7b599232021-11-04 20:41:3820
Xiaohan Wangd1b0e6b2022-01-20 21:40:2021#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
Maksim Sisov7b599232021-11-04 20:41:3822GFX_SWITCHES_EXPORT extern const char kX11Display[];
23GFX_SWITCHES_EXPORT extern const char kNoXshm[];
24#endif
25
[email protected]0d3b9dd2012-11-14 04:14:4826} // namespace switches
[email protected]0d3b9dd2012-11-14 04:14:4827
Christopher Cameron0b2da252021-06-29 23:40:4928namespace features {
Sean Kau5c70cf62023-02-02 23:56:1329
Daniel Cheng849f6a542022-09-21 16:56:0330GFX_SWITCHES_EXPORT BASE_DECLARE_FEATURE(kOddHeightMultiPlanarBuffers);
31GFX_SWITCHES_EXPORT BASE_DECLARE_FEATURE(kOddWidthMultiPlanarBuffers);
Peter McNeeleyaa0ebcaf2023-09-12 17:25:5032GFX_SWITCHES_EXPORT BASE_DECLARE_FEATURE(kUseSmartRefForGPUFenceHandle);
Sean Kau5c70cf62023-02-02 23:56:1333
Hang Nguyen9d6939d2023-10-11 20:45:0334#if BUILDFLAG(IS_CHROMEOS)
35GFX_SWITCHES_EXPORT BASE_DECLARE_FEATURE(kEnableIntelMediaCompression);
36#endif
37
Christopher Cameron0b2da252021-06-29 23:40:4938} // namespace features
39
[email protected]0d3b9dd2012-11-14 04:14:4840#endif // UI_GFX_SWITCHES_H_