Trait cognitive_qualia::traits::HwGraphics
[−]
[src]
pub trait HwGraphics { fn set_graphics_manager(
&mut self,
graphics_manager: Box<GraphicsManagement + Send>
); fn has_hardware_acceleration_support(&self) -> bool; fn create_egl_image(&mut self, attrs: EglAttributes) -> Option<EglImageId>; fn destroy_egl_image(&mut self, eiid: EglImageId); fn import_dmabuf(&mut self, attrs: DmabufAttributes) -> Option<DmabufId>; fn destroy_dmabuf(&mut self, dbid: DmabufId); }
Hardware accelerated graphics functionality.
Required Methods
fn set_graphics_manager(
&mut self,
graphics_manager: Box<GraphicsManagement + Send>
)
&mut self,
graphics_manager: Box<GraphicsManagement + Send>
)
Sets graphics manager.
fn has_hardware_acceleration_support(&self) -> bool
Checks if hardware acceleration support is available.
fn create_egl_image(&mut self, attrs: EglAttributes) -> Option<EglImageId>
Makes request to create EGL buffer.
fn destroy_egl_image(&mut self, eiid: EglImageId)
Requests destruction of hardware image.
fn import_dmabuf(&mut self, attrs: DmabufAttributes) -> Option<DmabufId>
Makes request to create EGL buffer from dmabuf.
fn destroy_dmabuf(&mut self, dbid: DmabufId)
Requests destruction of dmabuf.