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 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 SINGLE_VALUE_TYPE(switches::kJavaScriptHarmony)}, | 944 SINGLE_VALUE_TYPE(switches::kJavaScriptHarmony)}, |
945 {"enable-asm-webassembly", flag_descriptions::kEnableAsmWasmName, | 945 {"enable-asm-webassembly", flag_descriptions::kEnableAsmWasmName, |
946 flag_descriptions::kEnableAsmWasmDescription, kOsAll, | 946 flag_descriptions::kEnableAsmWasmDescription, kOsAll, |
947 FEATURE_VALUE_TYPE(features::kAsmJsToWebAssembly)}, | 947 FEATURE_VALUE_TYPE(features::kAsmJsToWebAssembly)}, |
948 {"enable-webassembly", flag_descriptions::kEnableWasmName, | 948 {"enable-webassembly", flag_descriptions::kEnableWasmName, |
949 flag_descriptions::kEnableWasmDescription, kOsAll, | 949 flag_descriptions::kEnableWasmDescription, kOsAll, |
950 FEATURE_VALUE_TYPE(features::kWebAssembly)}, | 950 FEATURE_VALUE_TYPE(features::kWebAssembly)}, |
951 {"shared-array-buffer", flag_descriptions::kEnableSharedArrayBufferName, | 951 {"shared-array-buffer", flag_descriptions::kEnableSharedArrayBufferName, |
952 flag_descriptions::kEnableSharedArrayBufferDescription, kOsAll, | 952 flag_descriptions::kEnableSharedArrayBufferDescription, kOsAll, |
953 FEATURE_VALUE_TYPE(features::kSharedArrayBuffer)}, | 953 FEATURE_VALUE_TYPE(features::kSharedArrayBuffer)}, |
954 {"enable-v8-future", flag_descriptions::kV8FutureName, | |
955 flag_descriptions::kV8FutureDescription, kOsAll, | |
956 FEATURE_VALUE_TYPE(features::kV8Future)}, | |
957 {"disable-v8-ignition-turbo", | 954 {"disable-v8-ignition-turbo", |
958 flag_descriptions::kV8DisableIgnitionTurboName, | 955 flag_descriptions::kV8DisableIgnitionTurboName, |
959 flag_descriptions::kV8DisableIgnitionTurboDescription, kOsAll, | 956 flag_descriptions::kV8DisableIgnitionTurboDescription, kOsAll, |
960 FEATURE_VALUE_TYPE(features::kV8NoTurbo)}, | 957 FEATURE_VALUE_TYPE(features::kV8NoTurbo)}, |
961 {"disable-software-rasterizer", flag_descriptions::kSoftwareRasterizerName, | 958 {"disable-software-rasterizer", flag_descriptions::kSoftwareRasterizerName, |
962 flag_descriptions::kSoftwareRasterizerDescription, | 959 flag_descriptions::kSoftwareRasterizerDescription, |
963 #if BUILDFLAG(ENABLE_SWIFTSHADER) | 960 #if BUILDFLAG(ENABLE_SWIFTSHADER) |
964 kOsAll, | 961 kOsAll, |
965 #else // BUILDFLAG(ENABLE_SWIFTSHADER) | 962 #else // BUILDFLAG(ENABLE_SWIFTSHADER) |
966 0, | 963 0, |
(...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2686 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2683 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2687 | 2684 |
2688 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2685 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2689 *count = arraysize(kFeatureEntries); | 2686 *count = arraysize(kFeatureEntries); |
2690 return kFeatureEntries; | 2687 return kFeatureEntries; |
2691 } | 2688 } |
2692 | 2689 |
2693 } // namespace testing | 2690 } // namespace testing |
2694 | 2691 |
2695 } // namespace about_flags | 2692 } // namespace about_flags |
OLD | NEW |