| Index: gpu/config/gpu_features.cc
|
| diff --git a/gpu/config/gpu_features.cc b/gpu/config/gpu_features.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..766a7fd613615914aab65006db49a012eae211e9
|
| --- /dev/null
|
| +++ b/gpu/config/gpu_features.cc
|
| @@ -0,0 +1,21 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +#include "gpu/config/gpu_features.h"
|
| +
|
| +#include "build/build_config.h"
|
| +
|
| +namespace features {
|
| +
|
| +// Enable GPU Rasterization by default. This can still be overridden by
|
| +// --force-gpu-rasterization or --disable-gpu-rasterization.
|
| +#if defined(OS_ANDROID) || defined(OS_MACOSX)
|
| +// DefaultEnableGpuRasterization has launched on Android and Mac.
|
| +const base::Feature kDefaultEnableGpuRasterization{
|
| + "DefaultEnableGpuRasterization", base::FEATURE_ENABLED_BY_DEFAULT};
|
| +#else
|
| +const base::Feature kDefaultEnableGpuRasterization{
|
| + "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT};
|
| +#endif
|
| +
|
| +} // namespace features
|
|
|