Struct webrender::composite::CompositorCapabilities
source · #[repr(C)]pub struct CompositorCapabilities {
pub virtual_surface_size: i32,
pub redraw_on_invalidation: bool,
pub max_update_rects: usize,
pub supports_surface_for_backdrop: bool,
pub supports_external_compositor_surface_negative_scaling: bool,
}
Fields§
§virtual_surface_size: i32
The virtual surface size used by the underlying platform.
redraw_on_invalidation: bool
Whether the compositor requires redrawing on invalidation.
max_update_rects: usize
The maximum number of dirty rects that can be provided per compositor surface update. If this is zero, the entire compositor surface for a given tile will be drawn if it’s dirty.
supports_surface_for_backdrop: bool
Whether or not this compositor will create surfaces for backdrops.
supports_external_compositor_surface_negative_scaling: bool
Whether external compositor surface supports negative scaling.
Trait Implementations§
source§impl Clone for CompositorCapabilities
impl Clone for CompositorCapabilities
source§fn clone(&self) -> CompositorCapabilities
fn clone(&self) -> CompositorCapabilities
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 CompositorCapabilities
impl Debug for CompositorCapabilities
source§impl Default for CompositorCapabilities
impl Default for CompositorCapabilities
source§impl PartialEq for CompositorCapabilities
impl PartialEq for CompositorCapabilities
source§impl Serialize for CompositorCapabilities
impl Serialize for CompositorCapabilities
impl Copy for CompositorCapabilities
impl StructuralPartialEq for CompositorCapabilities
Auto Trait Implementations§
impl Freeze for CompositorCapabilities
impl RefUnwindSafe for CompositorCapabilities
impl Send for CompositorCapabilities
impl Sync for CompositorCapabilities
impl Unpin for CompositorCapabilities
impl UnwindSafe for CompositorCapabilities
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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