diff --git a/src/backend/egl/display.rs b/src/backend/egl/display.rs index d163511..ff31316 100644 --- a/src/backend/egl/display.rs +++ b/src/backend/egl/display.rs @@ -18,7 +18,7 @@ use crate::backend::egl::{ ffi, wrap_egl_call, EGLError, Error, context::{GlAttributes, PixelFormatRequirements}, native::{EGLNativeDisplay}, - BufferAccessError, EGLImages, Format, + BufferAccessError, EGLBuffer, Format, }; /// Wrapper around [`ffi::EGLDisplay`](ffi::egl::types::EGLDisplay) to ensure display is only destroyed @@ -591,7 +591,7 @@ impl EGLBufferReader { pub fn egl_buffer_contents( &self, buffer: &WlBuffer, - ) -> ::std::result::Result { + ) -> ::std::result::Result { let mut format: i32 = 0; let query = wrap_egl_call(|| unsafe { ffi::egl::QueryWaylandBufferWL( @@ -670,7 +670,7 @@ impl EGLBufferReader { }); } - Ok(EGLImages { + Ok(EGLBuffer { display: self.display.clone(), width: width as u32, height: height as u32, diff --git a/src/backend/egl/mod.rs b/src/backend/egl/mod.rs index 4577c57..3422e8d 100644 --- a/src/backend/egl/mod.rs +++ b/src/backend/egl/mod.rs @@ -236,7 +236,7 @@ impl Format { /// Images of the EGL-based [`WlBuffer`]. #[cfg(feature = "wayland_frontend")] -pub struct EGLImages { +pub struct EGLBuffer { display: Arc, /// Width in pixels pub width: u32, @@ -265,7 +265,7 @@ impl fmt::Debug for EGLImages { } #[cfg(feature = "wayland_frontend")] -impl EGLImages { +impl EGLBuffer { /// Amount of planes of these `EGLImages` pub fn num_planes(&self) -> usize { self.format.num_planes() @@ -327,7 +327,7 @@ impl EGLImages { } #[cfg(feature = "wayland_frontend")] -impl Drop for EGLImages { +impl Drop for EGLBuffer { fn drop(&mut self) { for image in self.images.drain(..) { // ignore result on drop