Remove deprecated API surface, Pt. 1
- Remove Device.getDefaultQueue()
- Remove Extent3D.depth
- Remove setIndexBufferWithFormat
- Remove TextureUsage::OutputAttachment
Change-Id: If1c39b5630c88c3b87b37e317aafe7442419f7d0
Bug: dawn:22
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/50700
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Brandon Jones <bajones@chromium.org>
diff --git a/src/dawn_native/Device.cpp b/src/dawn_native/Device.cpp
index a2443b2..713688e 100644
--- a/src/dawn_native/Device.cpp
+++ b/src/dawn_native/Device.cpp
@@ -985,12 +985,6 @@
return mQueue.Get();
}
- QueueBase* DeviceBase::APIGetDefaultQueue() {
- EmitDeprecationWarning(
- "Device::GetDefaultQueue is deprecated, use Device::GetQueue() instead");
- return APIGetQueue();
- }
-
ExternalTextureBase* DeviceBase::APICreateExternalTexture(
const ExternalTextureDescriptor* descriptor) {
Ref<ExternalTextureBase> result = nullptr;
@@ -1305,12 +1299,10 @@
ResultOrError<Ref<TextureBase>> DeviceBase::CreateTexture(const TextureDescriptor* descriptor) {
DAWN_TRY(ValidateIsAlive());
- TextureDescriptor fixedDescriptor = *descriptor;
- DAWN_TRY(FixUpDeprecatedGPUExtent3DDepth(this, &(fixedDescriptor.size)));
if (IsValidationEnabled()) {
- DAWN_TRY(ValidateTextureDescriptor(this, &fixedDescriptor));
+ DAWN_TRY(ValidateTextureDescriptor(this, descriptor));
}
- return CreateTextureImpl(&fixedDescriptor);
+ return CreateTextureImpl(descriptor);
}
ResultOrError<Ref<TextureViewBase>> DeviceBase::CreateTextureView(