commit | 29b7ee5f4948dba48cbc5757b4b167c17454ea5d | [log] [tgz] |
---|---|---|
author | Calder Kitagawa <ckitagawa@chromium.org> | Mon Aug 19 17:34:51 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Aug 19 17:34:51 2024 |
tree | 8f814f5d2a5faafae39f1a8b5dd031d5ddf71782 | |
parent | 44190aa4079168329e4c8b667d4329e9d43c2fa0 [diff] |
[Thumbnails] Refactor ThumbnailProvider and Fetcher Refactor ThumbnailProvider and ThumbnailFetcher to use a more conventional argument order where the callback is the last argument. Change the callback everywhere to take a Drawable rather than a Bitmap in preparation for MultiThumbnailProvider to return a LayerDrawable instead of a BitmapDrawable in the future. Create a standalone ThumbnailFetcher to replace TabListMediator.ThumbnailFetcher. The new fetcher supports cancelation of in-flight callbacks and a follow-up CL will call cancel appropriately when the THUMBNAIL_FETCHER is changed. Bug: 342450242 Change-Id: I151e77f1d4d3814746d2f077a81d4ce36571cb21 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5792463 Reviewed-by: Xi Han <hanxi@chromium.org> Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Reviewed-by: Brandon Wylie <wylieb@google.com> Cr-Commit-Position: refs/heads/main@{#1343588}
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.