Struct webrender::picture::ExternalNativeSurface
source · pub struct ExternalNativeSurface {
pub used_this_frame: bool,
pub native_surface_id: NativeSurfaceId,
pub image_dependencies: [ImageDependency; 3],
}
Expand description
Information about a native compositor surface cached between frames.
Fields§
§used_this_frame: bool
If true, the surface was used this frame. Used for a simple form of GC to remove old surfaces.
native_surface_id: NativeSurfaceId
The native compositor surface handle
image_dependencies: [ImageDependency; 3]
List of image keys, and current image generations, that are drawn in this surface. The image generations are used to check if the compositor surface is dirty and needs to be updated.
Auto Trait Implementations§
impl Freeze for ExternalNativeSurface
impl RefUnwindSafe for ExternalNativeSurface
impl Send for ExternalNativeSurface
impl Sync for ExternalNativeSurface
impl Unpin for ExternalNativeSurface
impl UnwindSafe for ExternalNativeSurface
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more