From 437655216ec9112eb52f055addeb0839492e6a9b Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Wed, 13 May 2020 17:21:55 +0000 Subject: [PATCH] Remove wgpu::Device::CreateQueue It was deprecated in favor of wgpu::Device::GetDefaultQueue. Bug: dawn:22 Change-Id: I28d7e616b2beb7de8eed3a3df501eb97a6475928 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/21682 Commit-Queue: Corentin Wallez Reviewed-by: Stephen White Reviewed-by: Austin Eng --- dawn.json | 4 ---- src/tests/end2end/DeprecatedAPITests.cpp | 15 --------------- 2 files changed, 19 deletions(-) diff --git a/dawn.json b/dawn.json index 746e1f4244..6a0b362d8f 100644 --- a/dawn.json +++ b/dawn.json @@ -557,10 +557,6 @@ {"name": "descriptor", "type": "pipeline layout descriptor", "annotation": "const*"} ] }, - { - "name": "create queue", - "returns": "queue" - }, { "name": "create render bundle encoder", "returns": "render bundle encoder", diff --git a/src/tests/end2end/DeprecatedAPITests.cpp b/src/tests/end2end/DeprecatedAPITests.cpp index 106fd9a213..910965c6ae 100644 --- a/src/tests/end2end/DeprecatedAPITests.cpp +++ b/src/tests/end2end/DeprecatedAPITests.cpp @@ -56,21 +56,6 @@ class DeprecationTests : public DawnTest { } \ } while (0) -// Tests for Device::CreateQueue -> Device::GetDefaultQueue. - -// Test that using CreateQueue produces a deprecation warning -TEST_P(DeprecationTests, CreateQueueIsDeprecated) { - EXPECT_DEPRECATION_WARNING(device.CreateQueue()); -} - -// Test that queues created from CreateQueue can be used for things -TEST_P(DeprecationTests, CreateQueueReturnsFunctionalQueue) { - wgpu::Queue q; - EXPECT_DEPRECATION_WARNING(q = device.CreateQueue()); - - q.Submit(0, nullptr); -} - // Tests for ShaderModuleDescriptor.code/codeSize -> ShaderModuleSPIRVDescriptor static const char kEmptyShader[] = R"(#version 450