struct ImportedBuffer(NonNull<AHardwareBuffer>);Expand description
An owned reference to an AHardwareBuffer created by android_display_import_buffer.
Keeping one buffer object per imported guest resource, instead of recreating it on every flip, gives the buffer a stable identity so the Android display stack can cache it.
Tuple Fields§
§0: NonNull<AHardwareBuffer>Implementations§
Source§impl ImportedBuffer
impl ImportedBuffer
fn import( context: &AndroidDisplayContextWrapper, info: &AhbInfo, ) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImportedBuffer
impl RefUnwindSafe for ImportedBuffer
impl !Send for ImportedBuffer
impl !Sync for ImportedBuffer
impl Unpin for ImportedBuffer
impl UnwindSafe for ImportedBuffer
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