Struct webrender::batch::OpaqueBatchList
source · pub struct OpaqueBatchList {
pub pixel_area_threshold_for_new_batch: f32,
pub batches: Vec<PrimitiveBatch>,
pub current_batch_index: usize,
lookback_count: usize,
}
Fields§
§pixel_area_threshold_for_new_batch: f32
§batches: Vec<PrimitiveBatch>
§current_batch_index: usize
§lookback_count: usize
Implementations§
source§impl OpaqueBatchList
impl OpaqueBatchList
fn new(pixel_area_threshold_for_new_batch: f32, lookback_count: usize) -> Self
sourcefn clear(&mut self)
fn clear(&mut self)
Clear all current batches in this list. This is typically used when a primitive is encountered that occludes all previous content in this batch list.
pub fn set_params_and_get_batch( &mut self, key: BatchKey, features: BatchFeatures, z_bounding_rect: &PictureRect, ) -> &mut Vec<PrimitiveInstanceData>
fn finalize(&mut self)
Auto Trait Implementations§
impl Freeze for OpaqueBatchList
impl RefUnwindSafe for OpaqueBatchList
impl Send for OpaqueBatchList
impl Sync for OpaqueBatchList
impl Unpin for OpaqueBatchList
impl UnwindSafe for OpaqueBatchList
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