Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1570 X-link: https://github.com/facebook/react-native/pull/42751 tsia. Need node state Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D53206323 fbshipit-source-id: eb48c3873536eb52c8ffcce8005725da274e5373
31 lines
654 B
C++
31 lines
654 B
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <chrono>
|
|
#include <memory>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include <yoga/Yoga.h>
|
|
|
|
namespace facebook::yoga {
|
|
|
|
struct YogaNodeAndConfig {
|
|
std::shared_ptr<YGNode> node_;
|
|
std::shared_ptr<const YGConfig> config_;
|
|
std::vector<YogaNodeAndConfig> children_;
|
|
};
|
|
|
|
struct BenchmarkResult {
|
|
std::chrono::steady_clock::duration treeCreationDuration;
|
|
std::chrono::steady_clock::duration layoutDuration;
|
|
};
|
|
|
|
} // namespace facebook::yoga
|