#include "dawn/wire/client/Client.h"
#include "dawn/common/Compiler.h"
#include "dawn/wire/client/Device.h"
namespace dawn::wire::client {
namespace {
class NoopCommandSerializer final : public CommandSerializer { … };
}
Client::Client(CommandSerializer* serializer, MemoryTransferService* memoryTransferService)
: … { … }
Client::~Client() { … }
void Client::UnregisterAllObjects() { … }
ReservedBuffer Client::ReserveBuffer(WGPUDevice device, const WGPUBufferDescriptor* descriptor) { … }
ReservedTexture Client::ReserveTexture(WGPUDevice device, const WGPUTextureDescriptor* descriptor) { … }
ReservedSwapChain Client::ReserveSwapChain(WGPUDevice device,
const WGPUSwapChainDescriptor* descriptor) { … }
ReservedSurface Client::ReserveSurface(WGPUInstance instance,
const WGPUSurfaceCapabilities* capabilities) { … }
ReservedInstance Client::ReserveInstance(const WGPUInstanceDescriptor* descriptor) { … }
void Client::ReclaimBufferReservation(const ReservedBuffer& reservation) { … }
void Client::ReclaimTextureReservation(const ReservedTexture& reservation) { … }
void Client::ReclaimSwapChainReservation(const ReservedSwapChain& reservation) { … }
void Client::ReclaimSurfaceReservation(const ReservedSurface& reservation) { … }
void Client::ReclaimInstanceReservation(const ReservedInstance& reservation) { … }
EventManager& Client::GetEventManager(const ObjectHandle& instance) { … }
void Client::Disconnect() { … }
bool Client::IsDisconnected() const { … }
void Client::Unregister(ObjectBase* obj, ObjectType type) { … }
void Client::ReclaimReservation(ObjectBase* obj, ObjectType type) { … }
}