Support for (de)serializing config values (#1571)

Summary:
Pull Request resolved: https://github.com/facebook/yoga/pull/1571

X-link: https://github.com/facebook/react-native/pull/42750

tsia. This is state we need to capture as it can drastically affect the benchmark times

Reviewed By: NickGerleman

Differential Revision: D53203385

fbshipit-source-id: 47178458d039df90fb15d8a420f9e0f17e4fe6ca
This commit is contained in:
Joe Vilches
2024-02-09 16:44:32 -08:00
committed by Facebook GitHub Bot
parent a37565f70d
commit f90ad378ff
12 changed files with 386 additions and 349 deletions

View File

@@ -13,6 +13,14 @@
namespace facebook::yoga {
void nodeToString(std::string& str, YGNodeRef node, YGPrintOptions options);
enum class PrintOptions : uint8_t {
Layout = 1 << 0,
Children = 1 << 1,
Style = 1 << 2,
Config = 1 << 3,
};
YG_DEFINE_ENUM_FLAG_OPERATORS(PrintOptions);
void nodeToString(std::string& str, YGNodeRef node, PrintOptions options);
} // namespace facebook::yoga