Mark SharedTextureMemory stable for DXGI and IOSurface
This feature is not supported over the wire, meaning that it is not
possible for Chromium renderer processes to use it. Hence it is not a
problem to mark it stable so that the Chromium GPU-side internal
implementation can assume that it is present. This will allow removing
usage of the WrapIOSurface() API from Chromium, which in turn will
allow cleanly optimizing the IOSurface implementation of
SharedTextureMemory.
Change-Id: I670491395e12fb6bc8b3afcc135eee3d8f2a44f6
Bug: chromium:1493854, dawn:2152
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/161640
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Auto-Submit: Colin Blundell <blundell@chromium.org>
diff --git a/docs/dawn/features/shared_texture_memory.md b/docs/dawn/features/shared_texture_memory.md
index 276f332..b499859 100644
--- a/docs/dawn/features/shared_texture_memory.md
+++ b/docs/dawn/features/shared_texture_memory.md
@@ -1,4 +1,4 @@
-# Shared Texture Memory (Experimental!)
+# Shared Texture Memory
## Overview
@@ -77,4 +77,4 @@
TODO(crbug.com/dawn/1745): additional documentation
-Work-in-progress: https://docs.google.com/document/d/1uRGL6vE1mSbpWd2v_KU5--RT5EjTXtruwiC7Ri3ZKz4/edit
\ No newline at end of file
+Work-in-progress: https://docs.google.com/document/d/1uRGL6vE1mSbpWd2v_KU5--RT5EjTXtruwiC7Ri3ZKz4/edit
diff --git a/src/dawn/native/Features.cpp b/src/dawn/native/Features.cpp
index 064c60d..9972fa8 100644
--- a/src/dawn/native/Features.cpp
+++ b/src/dawn/native/Features.cpp
@@ -188,47 +188,47 @@
"memory allocation.",
"https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/dawn/features/"
"shared_texture_memory.md",
- FeatureInfo::FeatureState::Experimental}},
+ FeatureInfo::FeatureState::Stable}},
{Feature::SharedTextureMemoryAHardwareBuffer,
{"Support importing AHardwareBuffer as shared texture memory.",
"https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/dawn/features/"
"shared_texture_memory.md",
- FeatureInfo::FeatureState::Experimental}},
+ FeatureInfo::FeatureState::Stable}},
{Feature::SharedTextureMemoryDmaBuf,
{"Support importing DmaBuf as shared texture memory.",
"https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/dawn/features/"
"shared_texture_memory.md",
- FeatureInfo::FeatureState::Experimental}},
+ FeatureInfo::FeatureState::Stable}},
{Feature::SharedTextureMemoryOpaqueFD,
{"Support importing OpaqueFD as shared texture memory.",
"https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/dawn/features/"
"shared_texture_memory.md",
- FeatureInfo::FeatureState::Experimental}},
+ FeatureInfo::FeatureState::Stable}},
{Feature::SharedTextureMemoryZirconHandle,
{"Support importing ZirconHandle as shared texture memory.",
"https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/dawn/features/"
"shared_texture_memory.md",
- FeatureInfo::FeatureState::Experimental}},
+ FeatureInfo::FeatureState::Stable}},
{Feature::SharedTextureMemoryDXGISharedHandle,
{"Support importing DXGISharedHandle as shared texture memory.",
"https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/dawn/features/"
"shared_texture_memory.md",
- FeatureInfo::FeatureState::Experimental}},
+ FeatureInfo::FeatureState::Stable}},
{Feature::SharedTextureMemoryD3D11Texture2D,
{"Support importing D3D11Texture2D as shared texture memory.",
"https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/dawn/features/"
"shared_texture_memory.md",
- FeatureInfo::FeatureState::Experimental}},
+ FeatureInfo::FeatureState::Stable}},
{Feature::SharedTextureMemoryIOSurface,
{"Support importing IOSurface as shared texture memory.",
"https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/dawn/features/"
"shared_texture_memory.md",
- FeatureInfo::FeatureState::Experimental}},
+ FeatureInfo::FeatureState::Stable}},
{Feature::SharedTextureMemoryEGLImage,
{"Support importing EGLImage as shared texture memory.",
"https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/dawn/features/"
"shared_texture_memory.md",
- FeatureInfo::FeatureState::Experimental}},
+ FeatureInfo::FeatureState::Stable}},
{Feature::SharedFenceVkSemaphoreOpaqueFD,
{"Support for importing and exporting VkSemaphoreOpaqueFD used for GPU synchronization.",
"https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/dawn/features/shared_fence.md",