public class RenderResult<State>
extends java.lang.Object
RenderState.LazyTree
. A RenderResult
from a previous computation will
make the next computation of a new RenderState.LazyTree
more efficient with internal caching.Modifier and Type | Method and Description |
---|---|
static LayoutCache |
buildCache(com.facebook.rendercore.LayoutCache.CachedData previousCache) |
static <State> RenderResult<State> |
create(RenderState.LayoutContext c,
Node node,
LayoutResult layoutResult,
RenderState.LazyTree<State> lazyTree,
int widthSpec,
int heightSpec,
State state) |
RenderTree |
getRenderTree() |
State |
getState() |
static <State,RenderContext> |
resolve(Context context,
RenderState.LazyTree<State> lazyTree,
RenderContext renderContext,
RenderCoreExtension<?,?>[] extensions,
RenderResult<State> previousResult,
int layoutVersion,
int widthSpec,
int heightSpec) |
static <State> boolean |
shouldReuseResult(Node node,
int widthSpec,
int heightSpec,
RenderResult<State> previousResult) |
static RenderState.LazyTree<java.lang.Void> |
wrapInLazyTree(Node node) |
static <T> RenderState.LazyTree<T> |
wrapInLazyTree(Node node,
T state) |
public static <State,RenderContext> RenderResult<State> resolve(Context context, RenderState.LazyTree<State> lazyTree, RenderContext renderContext, RenderCoreExtension<?,?>[] extensions, RenderResult<State> previousResult, int layoutVersion, int widthSpec, int heightSpec)
public static <State> RenderResult<State> create(RenderState.LayoutContext c, Node node, LayoutResult layoutResult, RenderState.LazyTree<State> lazyTree, int widthSpec, int heightSpec, State state)
public static <State> boolean shouldReuseResult(Node node, int widthSpec, int heightSpec, RenderResult<State> previousResult)
public RenderTree getRenderTree()
public State getState()
public static LayoutCache buildCache(com.facebook.rendercore.LayoutCache.CachedData previousCache)
public static RenderState.LazyTree<java.lang.Void> wrapInLazyTree(Node node)
public static <T> RenderState.LazyTree<T> wrapInLazyTree(Node node, T state)