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 | d666eff2 | 2017-09-09 19:01:44 | [diff] [blame] | 12 | #if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_CHROMEOS) |
| 13 | // DefaultEnableGpuRasterization has launched on Mac, Windows and ChromeOS. |
ericrk | 41a1579e | 2017-02-10 20:56:28 | [diff] [blame] | 14 | const base::Feature kDefaultEnableGpuRasterization{ |
| 15 | "DefaultEnableGpuRasterization", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 16 | #else |
| 17 | const base::Feature kDefaultEnableGpuRasterization{ |
| 18 | "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 19 | #endif |
| 20 | |
Geoff Lang | 94cb946 | 2017-10-25 21:54:02 | [diff] [blame] | 21 | // Use the passthrough command decoder by default. This can be overridden with |
| 22 | // the --use-cmd-decoder=passthrough or --use-cmd-decoder=validating flags. |
| 23 | const base::Feature kDefaultPassthroughCommandDecoder{ |
| 24 | "DefaultPassthroughCommandDecoder", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 25 | |
ericrk | 41a1579e | 2017-02-10 20:56:28 | [diff] [blame] | 26 | } // namespace features |