commit | 155f704a004f1cbc2fd0f1b5f2335f02fa83f046 | [log] [tgz] |
---|---|---|
author | Eric Sum <esum@google.com> | Thu Mar 10 22:37:27 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Mar 10 22:37:27 2022 |
tree | 7691540f86d8460e1dbb38a11bd029d6c3b7d61d | |
parent | 6cb73bd54f20029b03538f6fb86658696bb85cd6 [diff] |
Improvements to ui::lottie::Animation observer API. These will be used in a subsequent CL for ChromeOS, but they seem like generally good improvements to have: 1) Allow for multiple AnimationObservers. Not sure why there was only one allowed before, but most observer APIs allow for multiple. 2) Call AnimationObserver::OnAnimationCycleEnded() *after* painting the last frame of the cycle rather than before. This allows an observer to safely change the state of the animation within the observer notification itself (ex: the observer may want to Stop() after a cycle ends). Bug: b:223672841 Change-Id: Ie532ade096af7801cd2f24ff7a2ff612e2e3f7a5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3515627 Reviewed-by: Florin Malita <fmalita@chromium.org> Reviewed-by: Tao Wu <wutao@chromium.org> Commit-Queue: Eric Sum <esum@google.com> Cr-Commit-Position: refs/heads/main@{#979986}
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.