mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
Create wire Client and Server classes with private impl
This creates proper Client and Server interfaces which will be necessary for adding additional features to the Wire for chrome integration Bug: dawn:103 Change-Id: I181e95079b0bac85c2c6152ad8066a94b80c8d28 Reviewed-on: https://dawn-review.googlesource.com/c/4002 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
62e83971ca
commit
e2c851372a
@@ -15,7 +15,7 @@
|
||||
#include "common/Assert.h"
|
||||
#include "dawn/dawncpp.h"
|
||||
#include "dawn_native/DawnNative.h"
|
||||
#include "dawn_wire/Wire.h"
|
||||
#include "dawn_wire/WireServer.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
@@ -61,8 +61,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
||||
ASSERT(nullDevice.Get() != nullptr);
|
||||
|
||||
DevNull devNull;
|
||||
std::unique_ptr<dawn_wire::CommandHandler> wireServer(
|
||||
dawn_wire::NewServerCommandHandler(nullDevice.Get(), procs, &devNull));
|
||||
std::unique_ptr<dawn_wire::WireServer> wireServer(
|
||||
new dawn_wire::WireServer(nullDevice.Get(), procs, &devNull));
|
||||
|
||||
wireServer->HandleCommands(reinterpret_cast<const char*>(data), size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user