mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fabric: ShadowTreeDelegate::shadowTreeDidCommit was renamed to shadowTreeDidFinishTransaction
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
This commit is contained in:
committed by
Facebook Github Bot
parent
3426f1f537
commit
806a2b8103
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user