pub struct PixelBufferTextureFrame { /* private fields */ }Expand description
Exclusive reservation of one shell-owned CPU pixel buffer.
Implementations§
Source§impl PixelBufferTextureFrame
impl PixelBufferTextureFrame
Sourcepub fn write_pixels(
&mut self,
writer: impl FnOnce(&mut [u8], usize) + Send + 'static,
) -> Result<()>
pub fn write_pixels( &mut self, writer: impl FnOnce(&mut [u8], usize) + Send + 'static, ) -> Result<()>
Invokes writer with tightly packed RGBA8 storage and its row stride.
The slice belongs to the shell and is reused after Flutter releases the
frame; plugin code must not retain references into it.
Auto Trait Implementations§
impl !RefUnwindSafe for PixelBufferTextureFrame
impl !UnwindSafe for PixelBufferTextureFrame
impl Freeze for PixelBufferTextureFrame
impl Send for PixelBufferTextureFrame
impl Sync for PixelBufferTextureFrame
impl Unpin for PixelBufferTextureFrame
impl UnsafeUnpin for PixelBufferTextureFrame
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