pub struct DummyRenderer;
Available on crate feature
renderer_test
only.Trait Implementations§
Source§impl Debug for DummyRenderer
impl Debug for DummyRenderer
Source§impl Default for DummyRenderer
impl Default for DummyRenderer
Source§fn default() -> DummyRenderer
fn default() -> DummyRenderer
Returns the “default value” for a type. Read more
Source§impl ImportDma for DummyRenderer
impl ImportDma for DummyRenderer
Source§impl ImportDmaWl for DummyRenderer
Available on crate feature wayland_frontend
only.
impl ImportDmaWl for DummyRenderer
Available on crate feature
wayland_frontend
only.Source§fn import_dma_buffer(
&mut self,
buffer: &WlBuffer,
_surface: Option<&SurfaceData>,
damage: &[Rectangle<i32, BufferCoord>],
) -> Result<Self::TextureId, Self::Error>
fn import_dma_buffer( &mut self, buffer: &WlBuffer, _surface: Option<&SurfaceData>, damage: &[Rectangle<i32, BufferCoord>], ) -> Result<Self::TextureId, Self::Error>
Import a given dmabuf-based buffer into the renderer (see
buffer_type
). Read moreSource§impl ImportEgl for DummyRenderer
Available on crate features wayland_frontend
and use_system_lib
and backend_egl
only.
impl ImportEgl for DummyRenderer
Available on crate features
wayland_frontend
and use_system_lib
and backend_egl
only.Source§fn bind_wl_display(&mut self, _display: &DisplayHandle) -> Result<(), Error>
fn bind_wl_display(&mut self, _display: &DisplayHandle) -> Result<(), Error>
Binds the underlying EGL display to the given Wayland display. Read more
Source§fn unbind_wl_display(&mut self)
fn unbind_wl_display(&mut self)
Unbinds a previously bound egl display, if existing. Read more
Source§fn egl_reader(&self) -> Option<&EGLBufferReader>
fn egl_reader(&self) -> Option<&EGLBufferReader>
Returns the underlying
EGLBufferReader
. Read moreSource§fn import_egl_buffer(
&mut self,
_buffer: &WlBuffer,
_surface: Option<&SurfaceData>,
_damage: &[Rectangle<i32, Buffer>],
) -> Result<Self::TextureId, Self::Error>
fn import_egl_buffer( &mut self, _buffer: &WlBuffer, _surface: Option<&SurfaceData>, _damage: &[Rectangle<i32, Buffer>], ) -> Result<Self::TextureId, Self::Error>
Import a given wl_drm-based buffer into the renderer (see
buffer_type
). Read moreSource§impl ImportMem for DummyRenderer
impl ImportMem for DummyRenderer
Source§fn import_memory(
&mut self,
_data: &[u8],
_format: Fourcc,
_size: Size<i32, Buffer>,
_flipped: bool,
) -> Result<Self::TextureId, Self::Error>
fn import_memory( &mut self, _data: &[u8], _format: Fourcc, _size: Size<i32, Buffer>, _flipped: bool, ) -> Result<Self::TextureId, Self::Error>
Import a given chunk of memory into the renderer. Read more
Source§impl ImportMemWl for DummyRenderer
Available on crate feature wayland_frontend
only.
impl ImportMemWl for DummyRenderer
Available on crate feature
wayland_frontend
only.Source§fn import_shm_buffer(
&mut self,
buffer: &WlBuffer,
surface: Option<&SurfaceData>,
_damage: &[Rectangle<i32, Buffer>],
) -> Result<Self::TextureId, Self::Error>
fn import_shm_buffer( &mut self, buffer: &WlBuffer, surface: Option<&SurfaceData>, _damage: &[Rectangle<i32, Buffer>], ) -> Result<Self::TextureId, Self::Error>
Import a given shm-based buffer into the renderer (see
buffer_type
). Read moreSource§impl Renderer for DummyRenderer
impl Renderer for DummyRenderer
Source§fn context_id(&self) -> ContextId<DummyTexture>
fn context_id(&self) -> ContextId<DummyTexture>
Source§fn downscale_filter(
&mut self,
_filter: TextureFilter,
) -> Result<(), Self::Error>
fn downscale_filter( &mut self, _filter: TextureFilter, ) -> Result<(), Self::Error>
Set the filter method to be used when rendering a texture into a smaller area than its size
Source§fn upscale_filter(&mut self, _filter: TextureFilter) -> Result<(), Self::Error>
fn upscale_filter(&mut self, _filter: TextureFilter) -> Result<(), Self::Error>
Set the filter method to be used when rendering a texture into a larger area than its size
Source§fn set_debug_flags(&mut self, _flags: DebugFlags)
fn set_debug_flags(&mut self, _flags: DebugFlags)
Set the enabled
DebugFlags
Source§fn debug_flags(&self) -> DebugFlags
fn debug_flags(&self) -> DebugFlags
Returns the current enabled
DebugFlags
Source§fn render<'frame, 'buffer>(
&'frame mut self,
_target: &'frame mut DummyFramebuffer,
_size: Size<i32, Physical>,
_dst_transform: Transform,
) -> Result<DummyFrame, Self::Error>where
'buffer: 'frame,
fn render<'frame, 'buffer>(
&'frame mut self,
_target: &'frame mut DummyFramebuffer,
_size: Size<i32, Physical>,
_dst_transform: Transform,
) -> Result<DummyFrame, Self::Error>where
'buffer: 'frame,
Initialize a rendering context on the provided framebuffer with given dimensions and transformation. Read more
Source§impl RendererSuper for DummyRenderer
impl RendererSuper for DummyRenderer
Source§type Error = DummyError
type Error = DummyError
Error type returned by the rendering operations of this renderer.
Source§type TextureId = DummyTexture
type TextureId = DummyTexture
Texture Handle type used by this renderer.
Source§type Framebuffer<'buffer> = DummyFramebuffer
type Framebuffer<'buffer> = DummyFramebuffer
Framebuffer to draw onto
Source§type Frame<'frame, 'buffer> = DummyFrame
where
Self: 'frame,
'buffer: 'frame
type Frame<'frame, 'buffer> = DummyFrame where Self: 'frame, 'buffer: 'frame
Type representing a currently in-progress frame during the
Renderer::render
-callAuto Trait Implementations§
impl Freeze for DummyRenderer
impl RefUnwindSafe for DummyRenderer
impl Send for DummyRenderer
impl Sync for DummyRenderer
impl Unpin for DummyRenderer
impl UnwindSafe for DummyRenderer
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<R> ImportAll for R
impl<R> ImportAll for R
Source§fn import_buffer(
&mut self,
buffer: &WlBuffer,
surface: Option<&SurfaceData>,
damage: &[Rectangle<i32, Buffer>],
) -> Option<Result<<R as RendererSuper>::TextureId, <R as RendererSuper>::Error>>
fn import_buffer( &mut self, buffer: &WlBuffer, surface: Option<&SurfaceData>, damage: &[Rectangle<i32, Buffer>], ) -> Option<Result<<R as RendererSuper>::TextureId, <R as RendererSuper>::Error>>
Available on crate feature
wayland_frontend
only.Import a given buffer into the renderer. Read more