pub enum PictureCompositeMode {
MixBlend(MixBlendMode),
Filter(Filter),
ComponentTransferFilter(Handle<FilterDataIntern>),
Blit(BlitReason),
TileCache {
slice_id: SliceId,
},
SVGFEGraph(Vec<(FilterGraphNode, FilterGraphOp)>),
IntermediateSurface,
}Expand description
Specifies how this Picture should be composited onto the target it belongs to.
Variants§
MixBlend(MixBlendMode)
Apply CSS mix-blend-mode effect.
Filter(Filter)
Apply a CSS filter (except component transfer).
ComponentTransferFilter(Handle<FilterDataIntern>)
Apply a component transfer filter.
Blit(BlitReason)
Draw to intermediate surface, copy straight across. This is used for CSS isolation, and plane splitting.
TileCache
Used to cache a picture as a series of tiles.
SVGFEGraph(Vec<(FilterGraphNode, FilterGraphOp)>)
Apply an SVG filter graph
IntermediateSurface
A surface that is used as an input to another primitive
Implementations§
Source§impl PictureCompositeMode
impl PictureCompositeMode
pub fn get_rect( &self, surface: &SurfaceInfo, sub_rect: Option<LayoutRect>, ) -> LayoutRect
pub fn get_coverage( &self, surface: &SurfaceInfo, sub_rect: Option<LayoutRect>, ) -> LayoutRect
pub fn write_gpu_blocks( &self, surface: &SurfaceInfo, gpu_buffers: &mut GpuBufferBuilder, data_stores: &mut DataStores, extra_gpu_data: &mut SmallVec<[GpuBufferAddress; 1]>, )
Trait Implementations§
Source§impl Clone for PictureCompositeMode
impl Clone for PictureCompositeMode
Source§fn clone(&self) -> PictureCompositeMode
fn clone(&self) -> PictureCompositeMode
Returns a duplicate 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 PictureCompositeMode
impl Debug for PictureCompositeMode
Auto Trait Implementations§
impl Freeze for PictureCompositeMode
impl RefUnwindSafe for PictureCompositeMode
impl Send for PictureCompositeMode
impl Sync for PictureCompositeMode
impl Unpin for PictureCompositeMode
impl UnsafeUnpin for PictureCompositeMode
impl UnwindSafe for PictureCompositeMode
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§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