Remove deprecated Wire APIs

Bug: dawn:565
Change-Id: I577532347c79e64b418a93551027e89910c3ce68
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/40480
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Stephen White <senorblanco@chromium.org>
This commit is contained in:
Austin Eng
2021-02-05 23:36:30 +00:00
committed by Commit Bot service account
parent 20d5e380b3
commit 7fe5aa2eac
14 changed files with 18 additions and 49 deletions

View File

@@ -84,18 +84,6 @@ namespace dawn_wire { namespace client {
}
}
WGPUDevice Client::GetDevice() {
// This function is deprecated. The concept of a "default" device on the wire
// will be removed in favor of ReserveDevice/InjectDevice.
if (mDevice == nullptr) {
ReservedDevice reservation = ReserveDevice();
mDevice = FromAPI(reservation.device);
ASSERT(reservation.id == 1);
ASSERT(reservation.generation == 0);
}
return reinterpret_cast<WGPUDeviceImpl*>(mDevice);
}
ReservedTexture Client::ReserveTexture(WGPUDevice device) {
auto* allocation = TextureAllocator().New(this);