Rename SwapChainError to SurfaceError in iced_graphics
This commit is contained in:
parent
dda032c5b8
commit
acc47a5953
4 changed files with 9 additions and 9 deletions
|
|
@ -4,7 +4,7 @@ mod compositor;
|
|||
#[cfg(feature = "opengl")]
|
||||
mod gl_compositor;
|
||||
|
||||
pub use compositor::{Compositor, SwapChainError};
|
||||
pub use compositor::{Compositor, SurfaceError};
|
||||
|
||||
#[cfg(feature = "opengl")]
|
||||
pub use gl_compositor::GLCompositor;
|
||||
|
|
|
|||
|
|
@ -52,12 +52,12 @@ pub trait Compositor: Sized {
|
|||
background_color: Color,
|
||||
output: &<Self::Renderer as iced_native::Renderer>::Output,
|
||||
overlay: &[T],
|
||||
) -> Result<mouse::Interaction, SwapChainError>;
|
||||
) -> Result<mouse::Interaction, SurfaceError>;
|
||||
}
|
||||
|
||||
/// Result of an unsuccessful call to [`Compositor::draw`].
|
||||
#[derive(Clone, PartialEq, Eq, Debug, Error)]
|
||||
pub enum SwapChainError {
|
||||
pub enum SurfaceError {
|
||||
/// A timeout was encountered while trying to acquire the next frame.
|
||||
#[error(
|
||||
"A timeout was encountered while trying to acquire the next frame"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue