From 7143450998c72258f994acea688164f2fa1ff3eb Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Tue, 30 Aug 2022 01:00:50 +0000 Subject: [PATCH] Remove support for snake_case wgpu::Features. Chromium has been updated so the fallback is no longer needed. Bug: dawn:550 Change-Id: I25b054617fc054926e0eb850229f244ddc51bb61 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/100470 Commit-Queue: Corentin Wallez Kokoro: Kokoro Reviewed-by: Austin Eng --- src/dawn/native/Features.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/dawn/native/Features.cpp b/src/dawn/native/Features.cpp index e43da124e8..d375b2072e 100644 --- a/src/dawn/native/Features.cpp +++ b/src/dawn/native/Features.cpp @@ -233,23 +233,6 @@ Feature FeaturesInfo::FeatureNameToEnum(const char* featureName) const { if (iter != mFeatureNameToEnumMap.cend()) { return kFeatureNameAndInfoList[static_cast(iter->second)].feature; } - - // TODO(dawn:550): Remove this fallback logic when Chromium is updated. - constexpr std::array, 6> kReplacementsForDeprecatedNames = { - { - {"texture_compression_bc", "texture-compression-bc"}, - {"depth_clamping", "depth-clamping"}, - {"pipeline_statistics_query", "pipeline-statistics-query"}, - {"shader_float16", "shader-float16"}, - {"timestamp_query", "timestamp-query"}, - {"multiplanar_formats", "multiplanar-formats"}, - }}; - for (const auto& [name, replacement] : kReplacementsForDeprecatedNames) { - if (strcmp(featureName, name) == 0) { - return FeatureNameToEnum(replacement); - } - } - return Feature::InvalidEnum; }