Hide SoftwareRenderer behind feature flag
- Don't let backend depend on `CursorBackend` (used to be `GraphicsBackend`) anymore
This commit is contained in:
parent
ccc7abc94f
commit
38ec44f70c
|
@ -12,4 +12,5 @@ pub use self::cursor::*;
|
||||||
pub mod gl;
|
pub mod gl;
|
||||||
#[cfg(feature = "renderer_glium")]
|
#[cfg(feature = "renderer_glium")]
|
||||||
pub mod glium;
|
pub mod glium;
|
||||||
|
#[cfg(feature = "renderer_software")]
|
||||||
pub mod software;
|
pub mod software;
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
//! Common traits and types used for software rendering on graphics backends
|
//! Common traits and types used for software rendering on graphics backends
|
||||||
|
|
||||||
use super::GraphicsBackend;
|
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use wayland_server::protocol::wl_shm::Format;
|
use wayland_server::protocol::wl_shm::Format;
|
||||||
|
|
||||||
/// Trait that describes objects providing a software rendering implementation
|
/// Trait that describes objects providing a software rendering implementation
|
||||||
pub trait CpuGraphicsBackend<E: Error>: GraphicsBackend {
|
pub trait CpuGraphicsBackend<E: Error> {
|
||||||
/// Render a given buffer of a given format at a specified place in the framebuffer
|
/// Render a given buffer of a given format at a specified place in the framebuffer
|
||||||
///
|
///
|
||||||
/// # Error
|
/// # Error
|
||||||
|
|
Loading…
Reference in New Issue