mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
fb39d45ed5
Summary: Renaming the `better` utilities to `butter`: - to prevent claims that this library is superior to others - it really depends on use cases - to indicate ease of use throughout the codebase, easily spread like butter Changelog: [C++][Changed] Renaming C++ better util to butter, used by Fabric internals Reviewed By: JoshuaGross Differential Revision: D33242764 fbshipit-source-id: 26dc95d9597c61ce8e66708e44ed545e0fc5cff5
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) Facebook, Inc. and its 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 <butter/optional.h>
|
|
|
|
#include <react/renderer/components/root/RootShadowNode.h>
|
|
#include <react/renderer/mounting/MountingOverrideDelegate.h>
|
|
#include <react/renderer/mounting/MountingTransaction.h>
|
|
#include <react/renderer/mounting/ShadowViewMutation.h>
|
|
#include <react/renderer/telemetry/TransactionTelemetry.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
/*
|
|
* Represent a particular committed state of a shadow tree. The object contains
|
|
* a pointer to a root shadow node, a sequential number of commit and telemetry.
|
|
*/
|
|
class ShadowTreeRevision final {
|
|
public:
|
|
/*
|
|
* Sequential number of the commit that created this revision of a shadow
|
|
* tree.
|
|
*/
|
|
using Number = int64_t;
|
|
|
|
friend class ShadowTree;
|
|
friend class MountingCoordinator;
|
|
|
|
RootShadowNode::Shared rootShadowNode;
|
|
Number number;
|
|
TransactionTelemetry telemetry;
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|