| commit | b393af510aa553760f103dcac79782f1cde7d0d3 | [log] [tgz] |
|---|---|---|
| author | Colin Blundell <blundell@chromium.org> | Tue Dec 16 07:27:45 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Dec 16 07:27:45 2025 |
| tree | e621d7f2554c31bfdf3c8cafeade3fc1e78b6a17 | |
| parent | f0894986f772a0dff6f50ca78b57d35328a21aa5 [diff] |
[Blink] Have CSPExternalBitmap create SkSurface in constructor There is no reason for the on-demand construction in CSPExternalBitmap::IsValid(): * IsValid() is called immediately by the static Create() method, which is the only public entrypoint [1] * Once `sk_surface_` is populated, CSPExternalBitmap never destroys it [2] [1] https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/graphics/canvas_resource_provider.cc;l=1244?q=CanvasResourceProviderExternalBitmap::Create&ss=chromium [2] https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/graphics/canvas_resource_provider.h;l=314;drc=13c2ee3faddbad7baed3819883d2c6438fe01247;bpv=1;bpt=1 Bug: 352263194 Change-Id: Iafba59a3f9f5808d436376e8162adca1ed39ff01 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7261196 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/main@{#1559161}
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.