Make UIManager::animationTick const

Summary:
changelog: [internal]

UIManager::animationTick is thread safe. Let's make it obvious by marking the method const.

Reviewed By: javache

Differential Revision: D32669102

fbshipit-source-id: 49e35d0f0a5c5d1b03baa1cbf9cdece082909e85
This commit is contained in:
Samuel Susla
2021-12-02 07:54:09 -08:00
committed by Facebook GitHub Bot
parent 5da4872775
commit 9e2ec4d3dd
2 changed files with 2 additions and 2 deletions
@@ -446,7 +446,7 @@ void UIManager::stopSurfaceForAnimationDelegate(SurfaceId surfaceId) const {
}
}
void UIManager::animationTick() {
void UIManager::animationTick() const {
if (animationDelegate_ != nullptr &&
animationDelegate_->shouldAnimateFrame()) {
shadowTreeRegistry_.enumerate([](ShadowTree const &shadowTree) {
@@ -62,7 +62,7 @@ class UIManager final : public ShadowTreeDelegate {
*/
void stopSurfaceForAnimationDelegate(SurfaceId surfaceId) const;
void animationTick();
void animationTick() const;
/*
* Provides access to a UIManagerBindging.