blob: d2e494573c2f535fe34edcd90f285199d693527b [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 Karld666eff22017-09-09 19:01:4412#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_CHROMEOS)
13// DefaultEnableGpuRasterization has launched on Mac, Windows and ChromeOS.
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
Geoff Lang94cb9462017-10-25 21:54:0221// Use the passthrough command decoder by default. This can be overridden with
22// the --use-cmd-decoder=passthrough or --use-cmd-decoder=validating flags.
23const base::Feature kDefaultPassthroughCommandDecoder{
24 "DefaultPassthroughCommandDecoder", base::FEATURE_DISABLED_BY_DEFAULT};
25
ericrk41a1579e2017-02-10 20:56:2826} // namespace features