0
Go to file
Austin Eng a20738855d gpu: Add option for transfer buffer to gracefully fail on shmem OOM
The WebGPU API provides facilities to create mapped GPUBuffers
backed by shared memory. This makes it very easy for JavaScript to
make large transfer buffer allocations which fail allocation and
instantly lose the context.
This CL adds an option to CommandBuffer::CreateTransferBuffer and
MappedMemoryManager::Alloc to not lose the context on OOM but
instead fail gracefully.

Bug: dawn:450
Change-Id: I7311dd2ab685a150574056fbe9df5fa1724e4b7c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2310831
Reviewed-by: Bill Budge <bbudge@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Zhenyao Mo <zmo@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791071}
2020-07-22 23:14:39 +00:00
2020-07-22 22:39:49 +00:00
2020-07-15 17:26:58 +00:00
2020-07-22 21:55:16 +00:00
2020-07-22 21:55:16 +00:00
2020-07-22 00:39:54 +00:00
2020-07-21 21:16:12 +00:00
2020-07-20 06:15:27 +00:00

Logo Chromium

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.

The project's web site is https://www.chromium.org.

Documentation in the source is rooted in docs/README.md.

Learn how to Get Around the Chromium Source Code Directory Structure .

For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.

Description
Chromium是一个开源浏览器项目,提供了一种安全、快速、稳定的方法来体验Web。该浏览器可以在多个平台上下载,包括Mac、Windows、Linux和ChromiumOS。项目原始地址: https://chromium.googlesource.com/chromium/src.git
https://www.mobibrw.com/gitea-mirrors/chromium/src.git
Readme BSD-3-Clause 89 GiB
Languages
C++ 74.4%
Java 8.2%
Objective-C++ 4.6%
TypeScript 4%
Python 2.5%
Other 6.1%