pub enum DirtyRectStrategy {
Empty,
MultiRect,
MergedBbox,
FullFrame,
}Expand description
Adaptive dirty-region submission strategy selected from disjoint rect count, coverage, and merge waste ratio.
Variants§
Empty
No damaged pixels exist in the viewport.
MultiRect
Upload or rasterize each disjoint rectangle independently to avoid merging distant regions.
MergedBbox
Coalesce dirty rectangles into a single tight bounding box because union waste is low.
FullFrame
Redraw or upload the full viewport because coverage exceeded the threshold or full damage was requested.
Trait Implementations§
Source§impl Clone for DirtyRectStrategy
impl Clone for DirtyRectStrategy
impl Copy for DirtyRectStrategy
Source§impl Debug for DirtyRectStrategy
impl Debug for DirtyRectStrategy
Source§impl Default for DirtyRectStrategy
impl Default for DirtyRectStrategy
impl Eq for DirtyRectStrategy
Source§impl From<DirtyRectStrategy> for UploadStrategy
Lossless conversion from DirtyRectStrategy into UploadStrategy.
impl From<DirtyRectStrategy> for UploadStrategy
Lossless conversion from DirtyRectStrategy into UploadStrategy.
Source§impl Hash for DirtyRectStrategy
impl Hash for DirtyRectStrategy
Source§impl PartialEq for DirtyRectStrategy
impl PartialEq for DirtyRectStrategy
impl StructuralPartialEq for DirtyRectStrategy
Auto Trait Implementations§
impl Forget for DirtyRectStrategy
impl Freeze for DirtyRectStrategy
impl Move for DirtyRectStrategy
impl RefUnwindSafe for DirtyRectStrategy
impl Send for DirtyRectStrategy
impl Sync for DirtyRectStrategy
impl Unpin for DirtyRectStrategy
impl UnsafeUnpin for DirtyRectStrategy
impl UnwindSafe for DirtyRectStrategy
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