diff --git a/ReactCommon/fabric/mounting/ShadowTree.cpp b/ReactCommon/fabric/mounting/ShadowTree.cpp index f37b1b30316..ce1689d7a87 100644 --- a/ReactCommon/fabric/mounting/ShadowTree.cpp +++ b/ReactCommon/fabric/mounting/ShadowTree.cpp @@ -198,7 +198,7 @@ bool ShadowTree::tryCommit(ShadowTreeCommitTransaction transaction) const { ShadowTreeRevision{newRootShadowNode, revisionNumber, telemetry}); if (delegate_) { - delegate_->shadowTreeDidCommit(*this, mountingCoordinator_); + delegate_->shadowTreeDidFinishTransaction(*this, mountingCoordinator_); } return true; diff --git a/ReactCommon/fabric/mounting/ShadowTreeDelegate.h b/ReactCommon/fabric/mounting/ShadowTreeDelegate.h index 7d65e6b5e3d..c58170d1662 100644 --- a/ReactCommon/fabric/mounting/ShadowTreeDelegate.h +++ b/ReactCommon/fabric/mounting/ShadowTreeDelegate.h @@ -22,7 +22,7 @@ class ShadowTreeDelegate { /* * Called right after Shadow Tree commit a new state of the the tree. */ - virtual void shadowTreeDidCommit( + virtual void shadowTreeDidFinishTransaction( ShadowTree const &shadowTree, MountingCoordinator::Shared const &mountingCoordinator) const = 0; diff --git a/ReactCommon/fabric/uimanager/UIManager.cpp b/ReactCommon/fabric/uimanager/UIManager.cpp index 59572319f39..dbd03c72bad 100644 --- a/ReactCommon/fabric/uimanager/UIManager.cpp +++ b/ReactCommon/fabric/uimanager/UIManager.cpp @@ -298,10 +298,10 @@ ShadowTreeRegistry const &UIManager::getShadowTreeRegistry() const { #pragma mark - ShadowTreeDelegate -void UIManager::shadowTreeDidCommit( +void UIManager::shadowTreeDidFinishTransaction( ShadowTree const &shadowTree, MountingCoordinator::Shared const &mountingCoordinator) const { - SystraceSection s("UIManager::shadowTreeDidCommit"); + SystraceSection s("UIManager::shadowTreeDidFinishTransaction"); if (delegate_) { delegate_->uiManagerDidFinishTransaction(mountingCoordinator); diff --git a/ReactCommon/fabric/uimanager/UIManager.h b/ReactCommon/fabric/uimanager/UIManager.h index e02fa2be507..b0ed2e6339d 100644 --- a/ReactCommon/fabric/uimanager/UIManager.h +++ b/ReactCommon/fabric/uimanager/UIManager.h @@ -50,7 +50,7 @@ class UIManager final : public ShadowTreeDelegate { #pragma mark - ShadowTreeDelegate - void shadowTreeDidCommit( + void shadowTreeDidFinishTransaction( ShadowTree const &shadowTree, MountingCoordinator::Shared const &mountingCoordinator) const override;