mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 08:57:26 +00:00
Special-case GetDefaultQueue in the wire
This makes it so calling GetDefaultQueue always returns the same object. It required updating various WireTests to account for the additional wire calls. Bug: dawn:22 Change-Id: I8c74374b7c732b8bb7d0490bbc740dee0d2dface Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19726 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
8a437947a8
commit
f93791ab62
@@ -21,7 +21,6 @@ namespace dawn_wire { namespace client {
|
||||
|
||||
Client::Client(CommandSerializer* serializer, MemoryTransferService* memoryTransferService)
|
||||
: ClientBase(),
|
||||
mDevice(DeviceAllocator().New(this)->object.get()),
|
||||
mSerializer(serializer),
|
||||
mMemoryTransferService(memoryTransferService) {
|
||||
if (mMemoryTransferService == nullptr) {
|
||||
@@ -29,6 +28,8 @@ namespace dawn_wire { namespace client {
|
||||
mOwnedMemoryTransferService = CreateInlineMemoryTransferService();
|
||||
mMemoryTransferService = mOwnedMemoryTransferService.get();
|
||||
}
|
||||
|
||||
mDevice = DeviceAllocator().New(this)->object.get();
|
||||
}
|
||||
|
||||
Client::~Client() {
|
||||
|
||||
Reference in New Issue
Block a user