struct PrimitiveComparer<'a> {
prev_data: &'a [u8],
curr_data: &'a [u8],
prev_frame_id: FrameId,
curr_frame_id: FrameId,
resource_cache: &'a ResourceCache,
spatial_node_comparer: &'a mut SpatialNodeComparer,
opacity_bindings: &'a FastHashMap<PropertyBindingId, BindingInfo<f32>>,
color_bindings: &'a FastHashMap<PropertyBindingId, BindingInfo<ColorU>>,
}Expand description
A helper struct to compare a primitive and all its sub-dependencies.
Fields§
§prev_data: &'a [u8]§curr_data: &'a [u8]§prev_frame_id: FrameId§curr_frame_id: FrameId§resource_cache: &'a ResourceCache§spatial_node_comparer: &'a mut SpatialNodeComparer§opacity_bindings: &'a FastHashMap<PropertyBindingId, BindingInfo<f32>>§color_bindings: &'a FastHashMap<PropertyBindingId, BindingInfo<ColorU>>Implementations§
Source§impl<'a> PrimitiveComparer<'a>
impl<'a> PrimitiveComparer<'a>
fn new( prev: &'a TileDescriptor, curr: &'a TileDescriptor, resource_cache: &'a ResourceCache, spatial_node_comparer: &'a mut SpatialNodeComparer, opacity_bindings: &'a FastHashMap<PropertyBindingId, BindingInfo<f32>>, color_bindings: &'a FastHashMap<PropertyBindingId, BindingInfo<ColorU>>, ) -> Self
Sourcefn compare_prim(
&mut self,
prev_desc: &PrimitiveDescriptor,
curr_desc: &PrimitiveDescriptor,
) -> PrimitiveCompareResult
fn compare_prim( &mut self, prev_desc: &PrimitiveDescriptor, curr_desc: &PrimitiveDescriptor, ) -> PrimitiveCompareResult
Check if two primitive descriptors are the same.
Auto Trait Implementations§
impl<'a> Freeze for PrimitiveComparer<'a>
impl<'a> !RefUnwindSafe for PrimitiveComparer<'a>
impl<'a> !Send for PrimitiveComparer<'a>
impl<'a> !Sync for PrimitiveComparer<'a>
impl<'a> Unpin for PrimitiveComparer<'a>
impl<'a> !UnwindSafe for PrimitiveComparer<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more