Skip to content

Commit

Permalink
Make UIManager::animationTick const
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sammy-SC authored and facebook-github-bot committed Dec 2, 2021
1 parent 5da4872 commit 9e2ec4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ReactCommon/react/renderer/uimanager/UIManager.cpp
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion ReactCommon/react/renderer/uimanager/UIManager.h
Expand Up @@ -62,7 +62,7 @@ class UIManager final : public ShadowTreeDelegate {
*/
void stopSurfaceForAnimationDelegate(SurfaceId surfaceId) const;

void animationTick();
void animationTick() const;

/*
* Provides access to a UIManagerBindging.
Expand Down

0 comments on commit 9e2ec4d

Please sign in to comment.