Count the number measure callback invocations

Summary: Counts how many times measure callbacks have been invoked during a layout pass. This is made available via the marker and event APIs.

Reviewed By: SidharthGuglani

Differential Revision: D15836983

fbshipit-source-id: 3835bef94e497375821c9f2ad8209447b4f11518
This commit is contained in:
David Aurelio
2019-06-15 10:15:49 -07:00
committed by Facebook Github Bot
parent a130ac2f9c
commit 6b5bf570c8
3 changed files with 10 additions and 4 deletions

View File

@@ -9,6 +9,7 @@
#include <functional>
#include <vector>
#include "../YGEnums.h"
#include "../YGMarker.h"
struct YGConfig;
struct YGNode;
@@ -81,6 +82,7 @@ struct Event::TypedData<Event::LayoutPassStart> {
template <>
struct Event::TypedData<Event::LayoutPassEnd> {
void* layoutContext;
YGMarkerLayoutData* layoutData;
};
template <>