commit | 5b62f06f159683593d2a31a68b041592d7d0d4f3 | [log] [tgz] |
---|---|---|
author | Colin Blundell <blundell@chromium.org> | Thu Mar 13 16:44:16 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Mar 13 16:44:16 2025 |
tree | a94564191d4e1f2856670607009fb53c8126f0ad | |
parent | 8f6a55394ce509927918baaf06498e1f7762fe47 [diff] |
[Blink] Simplify CanvasResourceProvider handling of single buffering The dance via which a CanvasResourceProvider becomes single-buffered is complex. In reality it's also unnecessary: At construction a given CanvasResourceProvider instance *knows* whether it is single-buffered. This CL eliminates the concept of a CanvasResourceProvider "transitioning" to single-buffered and instead has each subclass define a virtual IsSingleBuffered() method. The only one dependent on dynamic state is that of CanvasResourceProviderSharedImage, which is single-buffered iff it was created with CONCURRENT_READ_WRITE usage. Change-Id: Ia5faced09dc20329a4e8e318bf27464e00c35311 Bug: 352263194 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6346910 Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org> Commit-Queue: Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/main@{#1432172}
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.