mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 04:35:36 +08:00
Back out "[Fabric][C++][Android] update props during pre allocation of views"
Summary: This is a back-out of D14214844, we noticed that this regressed TTI for Marketplace You screen running in Fabric Original commit changeset: b81005f2bf49 Reviewed By: JoshuaGross Differential Revision: D14247897 fbshipit-source-id: de0cea92b437b2fbcd075f0d6a0066156800e3f0
This commit is contained in:
committed by
Facebook Github Bot
parent
60c0a60c50
commit
b3790d283f
@@ -258,11 +258,11 @@ void Scheduler::uiManagerDidCreateShadowNode(
|
||||
dynamic_cast<const LayoutableShadowNode *>(shadowNode.get());
|
||||
auto isLayoutable = layoutableShadowNode != nullptr;
|
||||
|
||||
auto shadowView = ShadowView(*shadowNode);
|
||||
delegate_->schedulerDidRequestPreliminaryViewAllocation(
|
||||
shadowNode->getRootTag(),
|
||||
shadowNode->getComponentName(),
|
||||
isLayoutable,
|
||||
shadowView);
|
||||
shadowNode->getComponentHandle());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,8 +35,9 @@ class SchedulerDelegate {
|
||||
*/
|
||||
virtual void schedulerDidRequestPreliminaryViewAllocation(
|
||||
SurfaceId surfaceId,
|
||||
ComponentName componentName,
|
||||
bool isLayoutable,
|
||||
const ShadowView &shadowView) = 0;
|
||||
ComponentHandle componentHandle) = 0;
|
||||
|
||||
virtual ~SchedulerDelegate() noexcept = default;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user