| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 4 |
| 5 #include "chrome/browser/about_flags.h" | 5 #include "chrome/browser/about_flags.h" |
| 6 | 6 |
| 7 #include <iterator> | 7 #include <iterator> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h" | 69 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h" |
| 70 #include "content/public/common/features.h" | 70 #include "content/public/common/features.h" |
| 71 #include "gin/public/gin_features.h" | 71 #include "gin/public/gin_features.h" |
| 72 #include "media/base/media_switches.h" | 72 #include "media/base/media_switches.h" |
| 73 #include "media/midi/midi_switches.h" | 73 #include "media/midi/midi_switches.h" |
| 74 #include "ui/base/ui_base_switches.h" | 74 #include "ui/base/ui_base_switches.h" |
| 75 #include "ui/compositor/compositor_switches.h" | 75 #include "ui/compositor/compositor_switches.h" |
| 76 #include "ui/display/display_switches.h" | 76 #include "ui/display/display_switches.h" |
| 77 #include "ui/events/event_switches.h" | 77 #include "ui/events/event_switches.h" |
| 78 #include "ui/gfx/switches.h" | 78 #include "ui/gfx/switches.h" |
| 79 #include "ui/gl/gl_features.h" |
| 79 #include "ui/gl/gl_switches.h" | 80 #include "ui/gl/gl_switches.h" |
| 80 #include "ui/keyboard/keyboard_switches.h" | 81 #include "ui/keyboard/keyboard_switches.h" |
| 81 #include "ui/native_theme/native_theme_switches.h" | 82 #include "ui/native_theme/native_theme_switches.h" |
| 82 #include "ui/views/views_switches.h" | 83 #include "ui/views/views_switches.h" |
| 83 | 84 |
| 84 #if defined(OS_ANDROID) | 85 #if defined(OS_ANDROID) |
| 85 #include "chrome/browser/android/chrome_feature_list.h" | 86 #include "chrome/browser/android/chrome_feature_list.h" |
| 86 #else | 87 #else |
| 87 #include "ui/message_center/message_center_switches.h" | 88 #include "ui/message_center/message_center_switches.h" |
| 88 #endif | 89 #endif |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 IDS_FLAGS_ENABLE_ASM_WASM_DESCRIPTION, kOsAll, | 799 IDS_FLAGS_ENABLE_ASM_WASM_DESCRIPTION, kOsAll, |
| 799 SINGLE_VALUE_TYPE(switches::kEnableAsmWasm)}, | 800 SINGLE_VALUE_TYPE(switches::kEnableAsmWasm)}, |
| 800 {"enable-webassembly", IDS_FLAGS_ENABLE_WASM_NAME, | 801 {"enable-webassembly", IDS_FLAGS_ENABLE_WASM_NAME, |
| 801 IDS_FLAGS_ENABLE_WASM_DESCRIPTION, kOsAll, | 802 IDS_FLAGS_ENABLE_WASM_DESCRIPTION, kOsAll, |
| 802 SINGLE_VALUE_TYPE(switches::kEnableWasm)}, | 803 SINGLE_VALUE_TYPE(switches::kEnableWasm)}, |
| 803 {"enable-ignition", IDS_FLAGS_V8_IGNITION_NAME, | 804 {"enable-ignition", IDS_FLAGS_V8_IGNITION_NAME, |
| 804 IDS_FLAGS_V8_IGNITION_DESCRIPTION, kOsAll, | 805 IDS_FLAGS_V8_IGNITION_DESCRIPTION, kOsAll, |
| 805 FEATURE_VALUE_TYPE(features::kV8Ignition)}, | 806 FEATURE_VALUE_TYPE(features::kV8Ignition)}, |
| 806 {"disable-software-rasterizer", IDS_FLAGS_SOFTWARE_RASTERIZER_NAME, | 807 {"disable-software-rasterizer", IDS_FLAGS_SOFTWARE_RASTERIZER_NAME, |
| 807 IDS_FLAGS_SOFTWARE_RASTERIZER_DESCRIPTION, | 808 IDS_FLAGS_SOFTWARE_RASTERIZER_DESCRIPTION, |
| 808 #if defined(ENABLE_SWIFTSHADER) | 809 #if BUILDFLAG(ENABLE_SWIFTSHADER) |
| 809 kOsAll, | 810 kOsAll, |
| 810 #else | 811 #else |
| 811 0, | 812 0, |
| 812 #endif | 813 #endif |
| 813 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableSoftwareRasterizer)}, | 814 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableSoftwareRasterizer)}, |
| 814 {"enable-gpu-rasterization", IDS_FLAGS_GPU_RASTERIZATION_NAME, | 815 {"enable-gpu-rasterization", IDS_FLAGS_GPU_RASTERIZATION_NAME, |
| 815 IDS_FLAGS_GPU_RASTERIZATION_DESCRIPTION, kOsAll, | 816 IDS_FLAGS_GPU_RASTERIZATION_DESCRIPTION, kOsAll, |
| 816 MULTI_VALUE_TYPE(kEnableGpuRasterizationChoices)}, | 817 MULTI_VALUE_TYPE(kEnableGpuRasterizationChoices)}, |
| 817 {"gpu-rasterization-msaa-sample-count", | 818 {"gpu-rasterization-msaa-sample-count", |
| 818 IDS_FLAGS_GPU_RASTERIZATION_MSAA_SAMPLE_COUNT_NAME, | 819 IDS_FLAGS_GPU_RASTERIZATION_MSAA_SAMPLE_COUNT_NAME, |
| (...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2260 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2261 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2261 | 2262 |
| 2262 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2263 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2263 *count = arraysize(kFeatureEntries); | 2264 *count = arraysize(kFeatureEntries); |
| 2264 return kFeatureEntries; | 2265 return kFeatureEntries; |
| 2265 } | 2266 } |
| 2266 | 2267 |
| 2267 } // namespace testing | 2268 } // namespace testing |
| 2268 | 2269 |
| 2269 } // namespace about_flags | 2270 } // namespace about_flags |
| OLD | NEW |