Publish events for layout pass
Summary: Adds `LayoutPassStart` and `LayoutPassEnd` events. The existing `NodeLayout` event in isolation is not as useful as it could be. Having events that mark start and end of a layout pass are a useful addition. Differential Revision: D15305467 fbshipit-source-id: 14af6f65e698fb1e3112eb2ffd87a74d31df4840
This commit is contained in:
committed by
Facebook Github Bot
parent
74fc37efc8
commit
a15bf6e701
@@ -127,6 +127,10 @@ void EventTest::listen(const YGNode& node, Event::Type type, Event::Data data) {
|
||||
case Event::NodeLayout:
|
||||
events.push_back(createArgs<Event::NodeLayout>(node, data));
|
||||
break;
|
||||
case Event::LayoutPassStart:
|
||||
break;
|
||||
case Event::LayoutPassEnd:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user