| commit | 925810b9bd09b097f3f9add6976463da712d429c | [log] [tgz] |
|---|---|---|
| author | Colin Blundell <blundell@chromium.org> | Wed Jan 08 16:18:58 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 08 16:18:58 2025 |
| tree | 0729d4819bf29802e278aa2800b83331f14294e8 | |
| parent | 8f1a6b7d4449491c9a567c348b714acde4c139e1 [diff] |
[Blink] Have CanvasResourceSharedBitmap::Bitmap use RasterFromPixmapCopy This CL changes CanvasResourceSharedBitmap::Bitmap() to use RasterFromPixmapCopy(), as the unaccelerated codepath in CanvasResourceSharedImage::Bitmap() does [1], rather than RasterFromPixmap(). This is part of the preparation for folding CanvasResourceSharedBitmap into CanvasResourceSharedImage. This is a slight behavioral change as we now copy the data when creating the UnacceleratedStaticBitmapImage rather than referencing the underlying data directly and holding onto the CanvasResourceSharedBitmap until the UnacceleratedStaticBitmapImage is released. The behavioral change should be benign. [1] https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/graphics/canvas_resource.cc;l=598-613?q=CanvasResourceSharedImage::Bitmap&ss=chromium Bug: 379996128 Change-Id: I0da02cc57f70b56e8fca09207860dd001c354c2c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6138589 Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org> Commit-Queue: Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/main@{#1403576}
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.