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

@@ -152,11 +152,12 @@ int DawnWireServerFuzzer::Run(const uint8_t* data,
DevNull devNull;
dawn_wire::WireServerDescriptor serverDesc = {};
serverDesc.device = device.Get();
serverDesc.procs = &procs;
serverDesc.serializer = &devNull;
std::unique_ptr<dawn_wire::WireServer> wireServer(new dawn_wire::WireServer(serverDesc));
wireServer->InjectDevice(device.Get(), 1, 0);
device = nullptr; // Server owns the device now.
wireServer->HandleCommands(reinterpret_cast<const char*>(data), size);
@@ -173,9 +174,7 @@ int DawnWireServerFuzzer::Run(const uint8_t* data,
}
}
// Destroy the server before the device because it needs to free all objects.
wireServer = nullptr;
device = nullptr;
// If we support error injection, and an output directory was provided, output copies of the
// original testcase data, prepended with the injected error index.