mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
5da4872775
commit
9e2ec4d3dd
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user