Oh, nice, we can remove an allocation on RSX nodes for the render process.

This commit is contained in:
Ryan McGrath 2019-05-25 03:14:48 -07:00
parent 4e822fa383
commit f1cb5fea93
No known key found for this signature in database
GPG key ID: 811674B62B666830
3 changed files with 3 additions and 3 deletions

View file

@ -47,7 +47,7 @@ impl RSX {
) -> RSX { ) -> RSX {
RSX::VirtualNode(VirtualNode { RSX::VirtualNode(VirtualNode {
tag: tag, tag: tag,
create_component_fn: Arc::new(create_fn), create_component_fn: create_fn,
instance: None, instance: None,
layout_node: None, layout_node: None,
props: props, props: props,

View file

@ -19,7 +19,7 @@ pub struct VirtualNode {
/// `Component` instances are created on-demand, if the reconciler deems it be so. This /// `Component` instances are created on-demand, if the reconciler deems it be so. This
/// is a closure that should return an instance of the correct type. /// is a closure that should return an instance of the correct type.
pub create_component_fn: Arc<fn() -> Arc<RwLock<Component>>>, pub create_component_fn: fn() -> Arc<RwLock<Component>>,
/// A cached component instance, which is transferred between trees. Since `Component` /// A cached component instance, which is transferred between trees. Since `Component`
/// instances are lazily created, this is an `Option`, and defaults to `None`. /// instances are lazily created, this is an `Option`, and defaults to `None`.

View file

@ -1 +1 @@
1.34.2 1.35.0