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:
David Vacca
2019-02-28 00:01:21 -08:00
committed by Facebook Github Bot
parent 60c0a60c50
commit b3790d283f
8 changed files with 24 additions and 41 deletions

View File

@@ -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());
}
}

View File

@@ -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;
};