Searched refs:GpuDisplayError (Results 1 – 6 of 6) sorted by relevance
/external/crosvm/gpu_display/src/ |
D | gpu_display_wl.rs | 15 use crate::{DisplayT, EventDevice, GpuDisplayError, GpuDisplayFramebuffer}; 99 pub fn new(wayland_path: Option<&Path>) -> Result<DisplayWl, GpuDisplayError> { in new() argument 103 return Err(GpuDisplayError::Allocate); in new() 111 Err(_) => return Err(GpuDisplayError::InvalidPath), in new() 113 Some(None) => return Err(GpuDisplayError::InvalidPath), in new() 125 return Err(GpuDisplayError::Connect); in new() 156 ) -> Result<u32, GpuDisplayError> { in import_dmabuf() argument 173 return Err(GpuDisplayError::FailedImport); in import_dmabuf() 198 ) -> Result<u32, GpuDisplayError> { in create_surface() argument 202 None => return Err(GpuDisplayError::InvalidSurfaceId), in create_surface() [all …]
|
D | lib.rs | 25 pub enum GpuDisplayError { enum 48 impl Display for GpuDisplayError { implementation 50 use self::GpuDisplayError::*; in fmt() 132 ) -> Result<u32, GpuDisplayError>; in import_dmabuf() argument 140 ) -> Result<u32, GpuDisplayError>; in create_surface() argument 160 fn import_event_device(&mut self, event_device: EventDevice) -> Result<u32, GpuDisplayError>; in import_event_device() argument 175 pub fn open_x<S: AsRef<str>>(display_name: Option<S>) -> Result<GpuDisplay, GpuDisplayError> { in open_x() argument 187 Err(GpuDisplayError::Unsupported) in open_x() 193 ) -> Result<GpuDisplay, GpuDisplayError> { in open_wayland() argument 202 pub fn open_stub() -> Result<GpuDisplay, GpuDisplayError> { in open_stub() [all …]
|
D | gpu_display_stub.rs | 8 use crate::{DisplayT, EventDevice, GpuDisplayError, GpuDisplayFramebuffer}; 138 pub fn new() -> Result<DisplayStub, GpuDisplayError> { in new() 139 let event = Event::new().map_err(|_| GpuDisplayError::CreateEvent)?; in new() 156 ) -> Result<u32, GpuDisplayError> { in create_surface() argument 158 return Err(GpuDisplayError::Unsupported); in create_surface() 194 ) -> Result<u32, GpuDisplayError> { in import_dmabuf() argument 195 Err(GpuDisplayError::Unsupported) in import_dmabuf() 214 fn import_event_device(&mut self, _event_device: EventDevice) -> Result<u32, GpuDisplayError> { in import_event_device() argument 215 Err(GpuDisplayError::Unsupported) in import_event_device()
|
D | gpu_display_x.rs | 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 [all …]
|
/external/crosvm/devices/src/virtio/gpu/ |
D | protocol.rs | 21 use gpu_display::GpuDisplayError; 811 ErrDisplay(GpuDisplayError), 836 impl From<GpuDisplayError> for GpuResponse { 837 fn from(e: GpuDisplayError) -> GpuResponse { in from()
|
D | mod.rs | 861 fn build(&self) -> std::result::Result<GpuDisplay, GpuDisplayError> { in build() argument
|