Enum webrender::composite::CompositorKind
source · pub enum CompositorKind {
Draw {
max_partial_present_rects: usize,
draw_previous_partial_present_regions: bool,
},
Native {
capabilities: CompositorCapabilities,
},
}
Expand description
This is a representation of CompositorConfig
without the Compositor
trait
present. This allows it to be freely copied to other threads, such as the render
backend where the frame builder can access it.
Variants§
Draw
WR handles compositing via drawing.
Fields
Native
Native OS compositor.
Fields
§
capabilities: CompositorCapabilities
The capabilities of the underlying platform.
Implementations§
source§impl CompositorKind
impl CompositorKind
pub fn get_virtual_surface_size(&self) -> i32
pub fn should_redraw_on_invalidation(&self) -> bool
Trait Implementations§
source§impl Clone for CompositorKind
impl Clone for CompositorKind
source§fn clone(&self) -> CompositorKind
fn clone(&self) -> CompositorKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CompositorKind
impl Debug for CompositorKind
source§impl Default for CompositorKind
impl Default for CompositorKind
source§impl PartialEq for CompositorKind
impl PartialEq for CompositorKind
source§fn eq(&self, other: &CompositorKind) -> bool
fn eq(&self, other: &CompositorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CompositorKind
impl Serialize for CompositorKind
impl Copy for CompositorKind
impl StructuralPartialEq for CompositorKind
Auto Trait Implementations§
impl Freeze for CompositorKind
impl RefUnwindSafe for CompositorKind
impl Send for CompositorKind
impl Sync for CompositorKind
impl Unpin for CompositorKind
impl UnwindSafe for CompositorKind
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