Data types for marker API
Summary: @public Adds types for a marker API in Yoga. This will allow us to register callbacks that Yoga can use to log performance data without hard-coding the backend system for that. Reviewed By: SidharthGuglani Differential Revision: D13118830 fbshipit-source-id: b42a42c609f0cf66212186f7f20ee572522d59e3
This commit is contained in:
committed by
Facebook Github Bot
parent
02a2309b2a
commit
89394a2dd6
@@ -6,6 +6,7 @@
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
#include "YGMarker.h"
|
||||
#include "Yoga-internal.h"
|
||||
#include "Yoga.h"
|
||||
|
||||
@@ -14,11 +15,12 @@ struct YGConfig {
|
||||
bool useWebDefaults = false;
|
||||
bool useLegacyStretchBehaviour = false;
|
||||
bool shouldDiffLayoutWithoutLegacyStretchBehaviour = false;
|
||||
bool printTree = false;
|
||||
float pointScaleFactor = 1.0f;
|
||||
YGLogger logger;
|
||||
YGCloneNodeFunc cloneNodeCallback = nullptr;
|
||||
void* context = nullptr;
|
||||
bool printTree = false;
|
||||
YGMarkerCallbacks markerCallbacks = {nullptr, nullptr};
|
||||
|
||||
YGConfig(YGLogger logger);
|
||||
};
|
||||
|
Reference in New Issue
Block a user