pub struct PrimTemplateCommonData {
    pub flags: PrimitiveFlags,
    pub may_need_repetition: bool,
    pub prim_rect: LayoutRect,
    pub opacity: PrimitiveOpacity,
    pub gpu_cache_handle: GpuCacheHandle,
    pub edge_aa_mask: EdgeAaSegmentMask,
}Fields§
§flags: PrimitiveFlags§may_need_repetition: bool§prim_rect: LayoutRect§opacity: PrimitiveOpacity§gpu_cache_handle: GpuCacheHandleThe GPU cache handle for a primitive template. Since this structure is retained across display lists by interning, this GPU cache handle also remains valid, which reduces the number of updates to the GPU cache when a new display list is processed.
edge_aa_mask: EdgeAaSegmentMaskSpecifies the edges that are allowed to have anti-aliasing. In other words EdgeAaSegmentFlags::all() does not necessarily mean all edges will be anti-aliased, only that they could be.
Use this to force disable anti-alasing on edges of the primitives.
Implementations§
Source§impl PrimTemplateCommonData
 
impl PrimTemplateCommonData
pub fn with_key_common(common: PrimKeyCommonData) -> Self
Trait Implementations§
Source§impl Debug for PrimTemplateCommonData
 
impl Debug for PrimTemplateCommonData
Source§impl MallocSizeOf for PrimTemplateCommonData
 
impl MallocSizeOf for PrimTemplateCommonData
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
 
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Auto Trait Implementations§
impl Freeze for PrimTemplateCommonData
impl RefUnwindSafe for PrimTemplateCommonData
impl Send for PrimTemplateCommonData
impl Sync for PrimTemplateCommonData
impl Unpin for PrimTemplateCommonData
impl UnwindSafe for PrimTemplateCommonData
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