Struct framebuffer_compositor::CacheBlock
source · pub struct CacheBlock { /* private fields */ }
Expand description
A CacheBlock
represents the cached (previously-composited) content of a range of rows in the source framebuffer.
It specifies the rectangular region in the destination framebuffer and the hash.
Once cached, a CacheBlock
block is independent of the source framebuffer it came from.
content_hash
is the hash value of the actual pixel contents in the cached block. A cache block is identical to some new framebuffer rows to be updated if they share the same content_hash
, location and width.
Implementations§
source§impl CacheBlock
impl CacheBlock
sourcepub fn overlaps_with(&self, cache: &CacheBlock) -> bool
pub fn overlaps_with(&self, cache: &CacheBlock) -> bool
Checks if a cache block overlaps with another one
Auto Trait Implementations§
impl RefUnwindSafe for CacheBlock
impl Send for CacheBlock
impl Sync for CacheBlock
impl Unpin for CacheBlock
impl UnwindSafe for CacheBlock
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