css layout systrace markers

Reviewed By: astreet

Differential Revision: D2668741

fb-gh-sync-id: 043ff740f8cc7c687a79c50c933db99ed67b60e4
This commit is contained in:
Mike Armstrong
2015-11-19 05:52:58 -08:00
committed by facebook-github-bot-7
parent c8fd9f7588
commit 2a9a5fc9e8

View File

@@ -768,7 +768,15 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
int tag = mShadowNodeRegistry.getRootTag(i);
ReactShadowNode cssRoot = mShadowNodeRegistry.getNode(tag);
notifyOnBeforeLayoutRecursive(cssRoot);
cssRoot.calculateLayout(mLayoutContext);
SystraceMessage.beginSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "cssRoot.calculateLayout")
.arg("rootTag", tag)
.flush();
try {
cssRoot.calculateLayout(mLayoutContext);
} finally {
Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
}
applyUpdatesRecursive(cssRoot, 0f, 0f);
}