Skip to content

Commit

Permalink
Fabric: ShadowTreeDelegate::shadowTreeDidCommit was renamed to `sha…
Browse files Browse the repository at this point in the history
…dowTreeDidFinishTransaction`

Summary:
Simple renaming. Now the name is aligned with `SchedulerDelegate::schedulerDidFinishTransaction` and actually expresses the idea that not only commit finished but also a transaction was prepared and layout events were sent.

Changelog: [Internal] Fabric-specific internal change.

Reviewed By: mdvacca

Differential Revision: D18542503

fbshipit-source-id: 54d429ed139383621fe926fa48a4de062f724176
  • Loading branch information
shergin authored and facebook-github-bot committed Nov 16, 2019
1 parent 3426f1f commit 806a2b8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ReactCommon/fabric/mounting/ShadowTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ReactCommon/fabric/mounting/ShadowTreeDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions ReactCommon/fabric/uimanager/UIManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ReactCommon/fabric/uimanager/UIManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 806a2b8

Please sign in to comment.