| commit | 7b9da046894bebb0d1e6a97a4b48a64f71c7103b | [log] [tgz] |
|---|---|---|
| author | Sky Debreuil <skydebreuil@google.com> | Sat Dec 13 01:59:38 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Dec 13 01:59:38 2025 |
| tree | 4afad86ae69905228d9d7fb65e4097a347f6ce39 | |
| parent | 31316495fb596ad5cc2d5fc21af0281d7b39cbc7 [diff] |
Refactor UIResourceLayerImpl to use unnormalized coordinates Update UIResourceLayerImpl to generate TextureDrawQuads using unnormalized texture coordinates. This involves scaling the UV coordinates by the resource size in AppendQuads and setting the quad's is_tex_coords_normalized flag to false. To support this, update LayerTreeHostImpl to store the size of UI resources in UIResourceData upon creation or import. This is required as when running in TreesInViz mode the shared_image on UIResourceData is null. Add a GetUIResourceSize accessor to LayerTreeHostImpl and LayerTreeImpl. Update CreateUIResourceFromImportedResource to accept the resource size, and update LayerContextImpl to pass this information. Bug: 451876192 Change-Id: Ia6dbee003f1c08884b09faabfb04a4581a4bf969 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7238552 Commit-Queue: Sky Debreuil <skydebreuil@google.com> Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org> Reviewed-by: Kramer Ge <fangzhoug@chromium.org> Auto-Submit: Sky Debreuil <skydebreuil@google.com> Cr-Commit-Position: refs/heads/main@{#1558383}
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.