switches.cc 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Copyright 2012 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. #include "build/build_config.h"
  5. #include "ui/gfx/switches.h"
  6. namespace switches {
  7. // Scale factor to apply to every animation duration. Must be >= 0.0. This will
  8. // only apply to LinearAnimation and its subclasses.
  9. const char kAnimationDurationScale[] = "animation-duration-scale";
  10. // Force disables font subpixel positioning. This affects the character glyph
  11. // sharpness, kerning, hinting and layout.
  12. const char kDisableFontSubpixelPositioning[] =
  13. "disable-font-subpixel-positioning";
  14. // Enable native CPU-mappable GPU memory buffer support on Linux.
  15. const char kEnableNativeGpuMemoryBuffers[] = "enable-native-gpu-memory-buffers";
  16. // Forces whether the user desires reduced motion, regardless of system
  17. // settings.
  18. const char kForcePrefersReducedMotion[] = "force-prefers-reduced-motion";
  19. // Run in headless mode, i.e., without a UI or display server dependencies.
  20. const char kHeadless[] = "headless";
  21. #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
  22. // Which X11 display to connect to. Emulates the GTK+ "--display=" command line
  23. // argument. In use only with Ozone/X11.
  24. const char kX11Display[] = "display";
  25. // Disables MIT-SHM extension. In use only with Ozone/X11.
  26. const char kNoXshm[] = "no-xshm";
  27. #endif
  28. } // namespace switches
  29. namespace features {
  30. const base::Feature kOddHeightMultiPlanarBuffers {
  31. "OddHeightMultiPlanarBuffers",
  32. #if BUILDFLAG(IS_MAC)
  33. base::FEATURE_ENABLED_BY_DEFAULT
  34. #else
  35. base::FEATURE_DISABLED_BY_DEFAULT
  36. #endif
  37. };
  38. const base::Feature kOddWidthMultiPlanarBuffers{
  39. "OddWidthMultiPlanarBuffers",
  40. #if BUILDFLAG(IS_MAC)
  41. base::FEATURE_ENABLED_BY_DEFAULT
  42. #else
  43. base::FEATURE_DISABLED_BY_DEFAULT
  44. #endif
  45. };
  46. } // namespace features