mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
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:
committed by
Commit Bot service account
parent
20d5e380b3
commit
7fe5aa2eac
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user