pub(crate) struct SingleThreadedDispatcher {
wide: Wide,
strip_generator: StripGenerator,
strip_storage: StripStorage,
level: Level,
}Fields§
§wide: Wide§strip_generator: StripGenerator§strip_storage: StripStorage§level: LevelImplementations§
Source§impl SingleThreadedDispatcher
impl SingleThreadedDispatcher
pub(crate) fn new(width: u16, height: u16, level: Level) -> Self
fn rasterize_f32( &self, buffer: &mut [u8], width: u16, height: u16, encoded_paints: &[EncodedPaint], )
fn rasterize_u8( &self, buffer: &mut [u8], width: u16, height: u16, encoded_paints: &[EncodedPaint], )
fn rasterize_with<S: Simd, F: FineKernel<S>>( &self, simd: S, buffer: &mut [u8], width: u16, height: u16, encoded_paints: &[EncodedPaint], )
Trait Implementations§
Source§impl Debug for SingleThreadedDispatcher
impl Debug for SingleThreadedDispatcher
Source§impl Dispatcher for SingleThreadedDispatcher
impl Dispatcher for SingleThreadedDispatcher
fn wide(&self) -> &Wide
fn fill_path( &mut self, path: &BezPath, fill_rule: Fill, transform: Affine, paint: Paint, aliasing_threshold: Option<u8>, )
fn stroke_path( &mut self, path: &BezPath, stroke: &Stroke, transform: Affine, paint: Paint, aliasing_threshold: Option<u8>, )
fn push_layer( &mut self, clip_path: Option<&BezPath>, fill_rule: Fill, clip_transform: Affine, blend_mode: BlendMode, opacity: f32, aliasing_threshold: Option<u8>, mask: Option<Mask>, )
fn pop_layer(&mut self)
fn reset(&mut self)
fn flush(&mut self)
fn rasterize( &self, buffer: &mut [u8], render_mode: RenderMode, width: u16, height: u16, encoded_paints: &[EncodedPaint], )
fn generate_wide_cmd(&mut self, strip_buf: &[Strip], paint: Paint)
fn strip_storage_mut(&mut self) -> &mut StripStorage
Auto Trait Implementations§
impl Freeze for SingleThreadedDispatcher
impl RefUnwindSafe for SingleThreadedDispatcher
impl Send for SingleThreadedDispatcher
impl Sync for SingleThreadedDispatcher
impl Unpin for SingleThreadedDispatcher
impl UnwindSafe for SingleThreadedDispatcher
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