From 7378612ca542740061fed430a1bb551ffd661ce5 Mon Sep 17 00:00:00 2001 From: Brandon Jones Date: Mon, 9 May 2022 20:35:43 +0000 Subject: [PATCH] Remove Unsafe API Toggle Check For Multiplane External Textures Removes check for Unsafe API toggle for multiplane external textures. This is no longer needed now that the the implementation is functional. Bug: dawn:1409 Bug: chromium:1323647 Change-Id: Iaf1c1b6bd053b68e306df61759ee9d81777f9b87 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/89460 Reviewed-by: Austin Eng Kokoro: Kokoro Commit-Queue: Brandon1 Jones --- src/dawn/native/ExternalTexture.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/dawn/native/ExternalTexture.cpp b/src/dawn/native/ExternalTexture.cpp index 1cbcb6fdf3..53029570b8 100644 --- a/src/dawn/native/ExternalTexture.cpp +++ b/src/dawn/native/ExternalTexture.cpp @@ -57,10 +57,6 @@ MaybeError ValidateExternalTextureDescriptor(const DeviceBase* device, wgpu::TextureFormat plane0Format = descriptor->plane0->GetFormat().format; if (descriptor->plane1) { - DAWN_INVALID_IF( - device->IsToggleEnabled(Toggle::DisallowUnsafeAPIs), - "Bi-planar external textures are disabled until the implementation is completed."); - DAWN_INVALID_IF(descriptor->colorSpace != wgpu::PredefinedColorSpace::Srgb, "The specified color space (%s) is not %s.", descriptor->colorSpace, wgpu::PredefinedColorSpace::Srgb);