mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 00:47:13 +00:00
dawn_wire: Factor the common command serialization pattern.
Bug: dawn:445 Change-Id: I15a99a126c0494fd06dd727ff5c9008cde675d76 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/23560 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Stephen White <senorblanco@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
8f9523eb38
commit
90abd47a28
@@ -54,14 +54,14 @@ namespace dawn_wire { namespace client {
|
||||
return result;
|
||||
}
|
||||
|
||||
void* Client::GetCmdSpace(size_t size) {
|
||||
char* Client::GetCmdSpace(size_t size) {
|
||||
if (DAWN_UNLIKELY(mIsDisconnected)) {
|
||||
if (size > mDummyCmdSpace.size()) {
|
||||
mDummyCmdSpace.resize(size);
|
||||
}
|
||||
return mDummyCmdSpace.data();
|
||||
}
|
||||
return mSerializer->GetCmdSpace(size);
|
||||
return static_cast<char*>(mSerializer->GetCmdSpace(size));
|
||||
}
|
||||
|
||||
void Client::Disconnect() {
|
||||
|
||||
Reference in New Issue
Block a user