Fix benchmark
Summary: It was always a mistake to have a measure function here but the recent addition of an assertion made us notice it. Reviewed By: splhack Differential Revision: D4156754 fbshipit-source-id: 98fcea6e233cb4f5706ebca37028c8d67edb4c09
This commit is contained in:
committed by
Facebook Github Bot
parent
c382d513fb
commit
087d1f3a82
@@ -59,7 +59,6 @@ CSS_BENCHMARKS({
|
|||||||
|
|
||||||
for (uint32_t i = 0; i < 10; i++) {
|
for (uint32_t i = 0; i < 10; i++) {
|
||||||
const CSSNodeRef child = CSSNodeNew();
|
const CSSNodeRef child = CSSNodeNew();
|
||||||
CSSNodeSetMeasureFunc(child, _measure);
|
|
||||||
CSSNodeStyleSetFlex(child, 1);
|
CSSNodeStyleSetFlex(child, 1);
|
||||||
CSSNodeInsertChild(root, child, 0);
|
CSSNodeInsertChild(root, child, 0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user