mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-10 14:08:04 +00:00
Cleanup old/deprecated wire and native APIs
Bug: none Change-Id: Idf9a00d8dc675e1fbc83554c487edcb2dda498c8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/30001 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
2931c429c9
commit
875091308b
@@ -30,6 +30,10 @@ namespace {
|
||||
|
||||
class DevNull : public dawn_wire::CommandSerializer {
|
||||
public:
|
||||
size_t GetMaximumAllocationSize() const override {
|
||||
// Some fuzzer bots have a 2GB allocation limit. Pick a value reasonably below that.
|
||||
return 1024 * 1024 * 1024;
|
||||
}
|
||||
void* GetCmdSpace(size_t size) override {
|
||||
if (size > buf.size()) {
|
||||
buf.resize(size);
|
||||
|
||||
Reference in New Issue
Block a user