commit | 77aba8d356243ffde556e8db9f9b607ab99e858f | [log] [tgz] |
---|---|---|
author | Colin Blundell <blundell@chromium.org> | Fri Oct 11 08:19:45 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Oct 11 08:19:45 2024 |
tree | c5568841e8f34c73d25a8c88d9839f8cc6c3ad32 | |
parent | 6517b0cbbad1335115b6c9ce89329a70cda72466 [diff] |
[Blink] Have HTMLCanvasElement track WebGPU transferability per-document This CL changes HTMLCanvasElement from tracking whether resources should be created with transferability to WebGPU at a per-HTMLCanvasElement granularity to at a per-Document granularity. We do this by adding a new Document-scoped Supplement that tracks the information of whether `transferToGPUTexture()` has ever been invoked in this Document. This will limit the copies that are needed for adding WebGPU usage to the resource's SharedImage to occur only on the first `transferToGPUTexture()` call within a given Document. Change-Id: I604120cffc4fcc28127b1403ecd85239ebde9662 Bug: 340922308 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5915623 Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org> Commit-Queue: Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/main@{#1367348}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
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.
If you found a bug, please file it at https://crbug.com/new.