/* * 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 #include #include #include #include #include namespace facebook::yoga { struct YogaNodeAndConfig { YogaNodeAndConfig( std::shared_ptr node, std::shared_ptr config, std::vector> children) : node_(std::move(node)), config_(std::move(config)), children_(std::move(children)) {} std::shared_ptr node_; std::shared_ptr config_; std::vector> children_; }; struct BenchmarkResult { std::chrono::steady_clock::duration treeCreationDuration; std::chrono::steady_clock::duration layoutDuration; }; } // namespace facebook::yoga