commit | 3b7b2636d85f684e8b0c6e26d7ae65a8da976428 | [log] [tgz] |
---|---|---|
author | Eric Sum <esum@google.com> | Fri Feb 04 08:46:13 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Feb 04 08:46:13 2022 |
tree | e51044178d726c6c383da163fc69032c487b8984 | |
parent | 95b3bf4f4811ff887b105c4d5c3bfabdd105a290 [diff] |
Add image asset dimensions to skottie resource metadata. The ash team would like this information so that we have a guide for how to transform (scale, crop, etc) our images before passing them to Skottie. As discussed offline, the easiest way to do this is to just parse the JSON ourselves. Since this is information that could be useful to other Chromium Skottie users as well, it's been added to the cc::SkottieResourceMetadata. It's been plumbed all the way to the cc::SkottieFrameDataProvider. Ash's implementation of that API will start using the dimensions in the next CL. Bug: b:217271214 Change-Id: I34d69efb78855f1fec314ca94095f77921c0705b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3435071 Reviewed-by: Florin Malita <fmalita@chromium.org> Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org> Commit-Queue: Eric Sum <esum@google.com> Cr-Commit-Position: refs/heads/main@{#967143}
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.