blob: 269b0136887f6495d40895dc55c6d2589196fccc [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
6#include "build/build_config.h"
7
8namespace features {
9
10// Enable GPU Rasterization by default. This can still be overridden by
11// --force-gpu-rasterization or --disable-gpu-rasterization.
Eric Karlba990bf2018-01-03 00:19:3512#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.
ericrk41a1579e2017-02-10 20:56:2816const base::Feature kDefaultEnableGpuRasterization{
17 "DefaultEnableGpuRasterization", base::FEATURE_ENABLED_BY_DEFAULT};
18#else
19const base::Feature kDefaultEnableGpuRasterization{
20 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT};
21#endif
22
Geoff Lang94cb9462017-10-25 21:54:0223// Use the passthrough command decoder by default. This can be overridden with
24// the --use-cmd-decoder=passthrough or --use-cmd-decoder=validating flags.
25const base::Feature kDefaultPassthroughCommandDecoder{
26 "DefaultPassthroughCommandDecoder", base::FEATURE_DISABLED_BY_DEFAULT};
27
ericrk41a1579e2017-02-10 20:56:2828} // namespace features