Lines Matching refs:GpuDisplayError
29 EventDeviceKind, GpuDisplayError, GpuDisplayFramebuffer,
554 pub fn open_display(display: Option<&str>) -> Result<DisplayX, GpuDisplayError> { in open_display() argument
555 let wait_ctx = WaitContext::new().map_err(|_| GpuDisplayError::Allocate)?; in open_display()
559 Some(Err(_)) => return Err(GpuDisplayError::InvalidPath), in open_display()
572 None => return Err(GpuDisplayError::Connect), in open_display()
577 .map_err(|_| GpuDisplayError::Allocate)?; in open_display()
581 return Err(GpuDisplayError::RequiredFeature("xshm extension")); in open_display()
586 .ok_or(GpuDisplayError::Connect) in open_display()
614 return Err(GpuDisplayError::RequiredFeature("no matching visual")); in open_display()
722 ) -> Result<u32, GpuDisplayError> { in create_surface() argument
724 return Err(GpuDisplayError::Unsupported); in create_surface()
781 ) -> Result<u32, GpuDisplayError> { in import_dmabuf() argument
782 Err(GpuDisplayError::Unsupported) in import_dmabuf()
801 fn import_event_device(&mut self, event_device: EventDevice) -> Result<u32, GpuDisplayError> { in import_event_device() argument
811 .map_err(|_| GpuDisplayError::Allocate)?; in import_event_device()