blob: 8ce538d748edf5818416219399d38f116e5dc35e [file] [log] [blame]
ericrk41a1579e2017-02-10 20:56:281// Copyright 2017 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 "gpu/config/gpu_finch_features.h"
5
ericrk41a1579e2017-02-10 20:56:286namespace features {
7
8// Enable GPU Rasterization by default. This can still be overridden by
9// --force-gpu-rasterization or --disable-gpu-rasterization.
Eric Karlba990bf2018-01-03 00:19:3510#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_CHROMEOS) || \
11 defined(OS_ANDROID)
12// DefaultEnableGpuRasterization has launched on Mac, Windows, ChromeOS, and
13// Android.
ericrk41a1579e2017-02-10 20:56:2814const base::Feature kDefaultEnableGpuRasterization{
15 "DefaultEnableGpuRasterization", base::FEATURE_ENABLED_BY_DEFAULT};
16#else
17const base::Feature kDefaultEnableGpuRasterization{
18 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT};
19#endif
20
Adrienne Walkerc87477e2018-06-06 22:28:2121// Enable out of process rasterization by default. This can still be overridden
22// by --enable-oop-rasterization or --disable-oop-rasterization.
23const base::Feature kDefaultEnableOopRasterization{
24 "DefaultEnableOopRasterization", base::FEATURE_DISABLED_BY_DEFAULT};
25
Geoff Lang94cb9462017-10-25 21:54:0226// Use the passthrough command decoder by default. This can be overridden with
27// the --use-cmd-decoder=passthrough or --use-cmd-decoder=validating flags.
28const base::Feature kDefaultPassthroughCommandDecoder{
Sunny Sachanandani9456e9b2018-09-08 02:30:5329 "DefaultPassthroughCommandDecoder", base::FEATURE_DISABLED_BY_DEFAULT};
Geoff Lang94cb9462017-10-25 21:54:0230
Sunny Sachanandani1b64d7a2018-05-18 02:08:0631// Use DirectComposition layers (overlays) for video if supported. Overridden by
32// --enable-direct-composition-layers and --disable-direct-composition-layers.
33const base::Feature kDirectCompositionOverlays{
34 "DirectCompositionOverlays", base::FEATURE_ENABLED_BY_DEFAULT};
35
Vikas Soni882982e12018-08-05 19:50:5836#if defined(OS_ANDROID)
37// Use android AImageReader when playing videos with MediaPlayer.
38const base::Feature kAImageReaderMediaPlayer{"AImageReaderMediaPlayer",
39 base::FEATURE_DISABLED_BY_DEFAULT};
40#endif
41
Sunny Sachanandani729164b2018-08-10 00:45:1442// Overrides preferred overlay format to NV12 instead of YUY2.
43const base::Feature kDirectCompositionPreferNV12Overlays{
44 "DirectCompositionPreferNV12Overlays", base::FEATURE_DISABLED_BY_DEFAULT};
45
Andres Calderon Jaramillo605253d2018-09-05 15:46:3546// Controls the decode acceleration of JPEG images (as opposed to camera
47// captures) in Chrome OS using the VA-API.
48// TODO(andrescj): remove or enable by default in Chrome OS once
49// https://crbug.com/868400 is resolved.
50const base::Feature kVaapiJpegImageDecodeAcceleration{
51 "VaapiJpegImageDecodeAcceleration", base::FEATURE_DISABLED_BY_DEFAULT};
52
ericrk41a1579e2017-02-10 20:56:2853} // namespace features