ericrk | 41a1579e | 2017-02-10 20:56:28 | [diff] [blame] | 1 | // 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 | |
| 6 | #include "build/build_config.h" |
| 7 | |
| 8 | namespace features { |
| 9 | |
| 10 | // Enable GPU Rasterization by default. This can still be overridden by |
| 11 | // --force-gpu-rasterization or --disable-gpu-rasterization. |
Eric Karl | ba990bf | 2018-01-03 00:19:35 | [diff] [blame^] | 12 | #if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_CHROMEOS) || \ |
| 13 | defined(OS_ANDROID) |
| 14 | // DefaultEnableGpuRasterization has launched on Mac, Windows, ChromeOS, and |
| 15 | // Android. |
ericrk | 41a1579e | 2017-02-10 20:56:28 | [diff] [blame] | 16 | const base::Feature kDefaultEnableGpuRasterization{ |
| 17 | "DefaultEnableGpuRasterization", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 18 | #else |
| 19 | const base::Feature kDefaultEnableGpuRasterization{ |
| 20 | "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 21 | #endif |
| 22 | |
Geoff Lang | 94cb946 | 2017-10-25 21:54:02 | [diff] [blame] | 23 | // Use the passthrough command decoder by default. This can be overridden with |
| 24 | // the --use-cmd-decoder=passthrough or --use-cmd-decoder=validating flags. |
| 25 | const base::Feature kDefaultPassthroughCommandDecoder{ |
| 26 | "DefaultPassthroughCommandDecoder", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 27 | |
ericrk | 41a1579e | 2017-02-10 20:56:28 | [diff] [blame] | 28 | } // namespace features |