Remove deprecated APIs

Bug: None
Change-Id: I77ac6660318bef1f9a245b3aee06a8e89a67e518
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/64540
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Brandon Jones <bajones@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2021-09-17 16:05:40 +00:00 committed by Dawn LUCI CQ
parent 92de2f0851
commit bd04e15890
7 changed files with 0 additions and 38 deletions

View File

@ -125,12 +125,6 @@ namespace dawn_native {
});
}
void RenderPassEncoder::APISetBlendColor(const Color* color) {
GetDevice()->EmitDeprecationWarning(
"SetBlendColor has been deprecated in favor of SetBlendConstant.");
APISetBlendConstant(color);
}
void RenderPassEncoder::APISetViewport(float x,
float y,
float width,

View File

@ -41,7 +41,6 @@ namespace dawn_native {
void APISetStencilReference(uint32_t reference);
void APISetBlendConstant(const Color* color);
void APISetBlendColor(const Color* color); // Deprecated
void APISetViewport(float x,
float y,
float width,

View File

@ -75,19 +75,6 @@ namespace dawn_native { namespace vulkan {
ExternalImageExportInfoDmaBuf::ExternalImageExportInfoDmaBuf()
: ExternalImageExportInfoFD(ExternalImageType::DmaBuf) {
}
int ExportSignalSemaphoreOpaqueFD(WGPUDevice cDevice, WGPUTexture cTexture) {
// Doesn't actually matter if we use OpaqueFD or DmaBuf since these paths are the same right
// now. This function will be removed.
Device* device = reinterpret_cast<Device*>(cDevice);
device->EmitDeprecationWarning(
"ExportSignalSemaphoreOpaqueFD is deprecated. Please use ExportVulkanImage instead.");
ExternalImageExportInfoOpaqueFD info;
if (!ExportVulkanImage(cTexture, VK_IMAGE_LAYOUT_GENERAL, &info)) {
return -1;
}
return info.semaphoreHandles[0];
}
#endif // DAWN_PLATFORM_LINUX
WGPUTexture WrapVulkanImage(WGPUDevice cDevice, const ExternalImageDescriptorVk* descriptor) {

View File

@ -114,12 +114,6 @@ namespace dawn_native { namespace vulkan {
#endif // __linux__
// Exports a signal semaphore from a wrapped texture. This must be called on wrapped
// textures before they are destroyed. On failure, returns -1
// TODO(enga): Remove after updating Chromium to use ExportVulkanImage.
DAWN_NATIVE_EXPORT int ExportSignalSemaphoreOpaqueFD(WGPUDevice cDevice,
WGPUTexture cTexture);
// Imports external memory into a Vulkan image. Internally, this uses external memory /
// semaphore extensions to import the image and wait on the provided synchronizaton
// primitives before the texture can be used.

View File

@ -12,11 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// This file contains test for deprecated parts of Dawn's API while following WebGPU's evolution.
// It contains test for the "old" behavior that will be deleted once users are migrated, tests that
// a deprecation warning is emitted when the "old" behavior is used, and tests that an error is
// emitted when both the old and the new behavior are used (when applicable).
#include "tests/DawnTest.h"
#include "utils/ComboRenderPipelineDescriptor.h"

View File

@ -12,11 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// This file contains test for deprecated parts of Dawn's API while following WebGPU's evolution.
// It contains test for the "old" behavior that will be deleted once users are migrated, tests that
// a deprecation warning is emitted when the "old" behavior is used, and tests that an error is
// emitted when both the old and the new behavior are used (when applicable).
#include "tests/DawnTest.h"
#include "common/Math.h"

View File

@ -18,8 +18,6 @@
namespace utils {
// For creating deprecated render pipeline descriptors
ComboVertexState::ComboVertexState() {
vertexBufferCount = 0;