| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 #include "gpu/config/gpu_finch_features.h" | 4 #include "gpu/config/gpu_finch_features.h" |
| 5 | 5 |
| 6 #include "build/build_config.h" | 6 #include "build/build_config.h" |
| 7 | 7 |
| 8 namespace features { | 8 namespace features { |
| 9 | 9 |
| 10 // Enable GPU Rasterization by default. This can still be overridden by | 10 // Enable GPU Rasterization by default. This can still be overridden by |
| 11 // --force-gpu-rasterization or --disable-gpu-rasterization. | 11 // --force-gpu-rasterization or --disable-gpu-rasterization. |
| 12 #if defined(OS_ANDROID) || defined(OS_MACOSX) | 12 #if defined(OS_MACOSX) |
| 13 // DefaultEnableGpuRasterization has launched on Android and Mac. | 13 // DefaultEnableGpuRasterization has launched on Mac. |
| 14 const base::Feature kDefaultEnableGpuRasterization{ | 14 const base::Feature kDefaultEnableGpuRasterization{ |
| 15 "DefaultEnableGpuRasterization", base::FEATURE_ENABLED_BY_DEFAULT}; | 15 "DefaultEnableGpuRasterization", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 16 #else | 16 #else |
| 17 const base::Feature kDefaultEnableGpuRasterization{ | 17 const base::Feature kDefaultEnableGpuRasterization{ |
| 18 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; | 18 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 } // namespace features | 21 } // namespace features |
| OLD | NEW |