pub enum FillHint {
None,
OpaqueSolid(PremulColor),
OpaqueImage,
}Expand description
Optimization hint for fill operations, computed in Wide::generate and passed to WideTile::fill.
This enum communicates whether a fill operation can benefit from overdraw elimination:
- For opaque solid colors: we can set the background color directly and skip the fill
- For opaque images: we can clear previous commands but still need to emit the fill
Variants§
None
No optimization possible, emit fill command normally.
OpaqueSolid(PremulColor)
Paint is an opaque solid color - can replace background if conditions are met.
OpaqueImage
Paint is an opaque image - can clear previous commands if conditions are met.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FillHint
impl RefUnwindSafe for FillHint
impl Send for FillHint
impl Sync for FillHint
impl Unpin for FillHint
impl UnsafeUnpin for FillHint
impl UnwindSafe for FillHint
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