summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Cargo.toml1
-rw-r--r--graphics/src/compositor.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/graphics/Cargo.toml b/graphics/Cargo.toml
index 7a9e6aee..15d26346 100644
--- a/graphics/Cargo.toml
+++ b/graphics/Cargo.toml
@@ -12,7 +12,6 @@ categories = ["gui"]
[features]
geometry = ["lyon_path"]
-opengl = []
image = ["dep:image", "kamadak-exif"]
web-colors = []
diff --git a/graphics/src/compositor.rs b/graphics/src/compositor.rs
index f7b86045..32111008 100644
--- a/graphics/src/compositor.rs
+++ b/graphics/src/compositor.rs
@@ -24,6 +24,9 @@ pub trait Compositor: Sized {
compatible_window: Option<&W>,
) -> Result<(Self, Self::Renderer), Error>;
+ /// Creates a [`Renderer`] for the [`Compositor`].
+ fn renderer(&self) -> Self::Renderer;
+
/// Crates a new [`Surface`] for the given window.
///
/// [`Surface`]: Self::Surface