commit | 5994b1efd4f0991e306cb338fd347936f9954fe0 | [log] [tgz] |
---|---|---|
author | Colin Blundell <blundell@chromium.org> | Wed Jun 18 06:56:10 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 18 06:56:10 2025 |
tree | 881d3210d10cabc2cc1fe2c5e12013233b6b1e64 | |
parent | 6fa88d39031621a65da9f4b32ffa69956b99b1d6 [diff] |
[Blink] Split CRCHost::resource_provider_ into per-context ivars This CL splits CanvasRenderingContextHost::resource_provider_ into four separate ivars, one for each context type. Each ivar is accessed only for the corresponding type of context. Notes: * This CL makes a change in CanvasRenderingContextHost::GetRasterMode() to access the resource provider only if the canvas has a context. That is not actually a functional change, as all flows via which the resource provider is set occur after the context has been installed on the host (so if the host does not have a context set, it will also not have a resource provider). * In followup work I am going to change the GetRasterMode() flow to abstract its current access to the resource provider through the context, cleaning up the conditional there. Bug: 352263194 Change-Id: I6f59ef320e9fb33e2c31b71b95be13aea54cf6d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6652428 Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org> Commit-Queue: Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/main@{#1475422}
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.