render: hide graphics API behind traits
This commit is contained in:
parent
d650b3375d
commit
24e410a5b5
40 changed files with 601 additions and 246 deletions
|
|
@ -15,7 +15,6 @@ use {
|
|||
config::ConfigProxy,
|
||||
dbus::Dbus,
|
||||
forker,
|
||||
gfx_apis::gl::{self, RenderError},
|
||||
globals::Globals,
|
||||
ifs::{wl_output::WlOutputGlobal, wl_surface::NoneSurfaceExt},
|
||||
io_uring::{IoUring, IoUringError},
|
||||
|
|
@ -86,8 +85,6 @@ pub enum CompositorError {
|
|||
ClientmemError(#[from] ClientMemError),
|
||||
#[error("The timer subsystem caused an error")]
|
||||
WheelError(#[from] WheelError),
|
||||
#[error("The render backend caused an error")]
|
||||
RenderError(#[from] RenderError),
|
||||
#[error("Could not create an io-uring")]
|
||||
IoUringError(#[from] IoUringError),
|
||||
}
|
||||
|
|
@ -112,7 +109,6 @@ fn start_compositor2(
|
|||
log::info!("pid = {}", uapi::getpid());
|
||||
init_fd_limit();
|
||||
leaks::init();
|
||||
gl::init()?;
|
||||
clientmem::init()?;
|
||||
let xkb_ctx = XkbContext::new().unwrap();
|
||||
let xkb_keymap = xkb_ctx.keymap_from_str(include_str!("keymap.xkb")).unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue