| commit | ba008f7f0cb15dd8c14cd393ba516cd979e71a55 | [log] [tgz] |
|---|---|---|
| author | vikas soni <vikassoni@chromium.org> | Thu Jan 02 18:07:09 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jan 02 18:07:09 2025 |
| tree | 6b874231865d7cd2ea85cf3eac9545c1d7b4050f | |
| parent | 0866d0eb4c37329ff2502d2410f6c4f700c1789d [diff] |
[MappableSI] Use CPU_ONLY_READ_WRITE for CrOs media capture. As a part of MappableSI, we are replacing GMB usage with MappableSI. Creating a MappableSI for R8 format in media capture code currently fails in service side code[1]. This is because creating a NativePixmap as part of OzoneImageBacking creation will fail as the underlying buffer is not texturable. Also for media capture code irrespective of the format, we don't really need to hold the GMB handle in the service side SharedImage backing anyways since capture code only need the GMB handle to map. Handle is then sent to renderer which actually creates a shared image which will be used in the GPU process. Hence use SHARED_IMAGE_USAGE_CPU_ONLY_READ_WRITE which instructs the service side that a NativePixmap inside the SharedImage is not necessary for this use case. This allows skipping the service side checks for texturable format. [1] https://source.chromium.org/chromium/chromium/src/+/main:ui/gfx/linux/gbm_wrapper.cc;drc=5d0194cbc9cddc2ad096da32f16d7d1eac5d4a34;l=410 Bug: 40264379, 382679374, 370760466 Change-Id: Ie1263454ca3e857efe521d1fe282f399d3db899f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6072273 Reviewed-by: Colin Blundell <blundell@chromium.org> Commit-Queue: vikas soni <vikassoni@chromium.org> Auto-Submit: vikas soni <vikassoni@chromium.org> Cr-Commit-Position: refs/heads/main@{#1401487}
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.