Home
last modified time | relevance | path

Searched refs:GpuDisplay (Results 1 – 5 of 5) sorted by relevance

/external/crosvm/gpu_display/src/
Dlib.rs169 pub struct GpuDisplay { struct
174 impl GpuDisplay { argument
175 pub fn open_x<S: AsRef<str>>(display_name: Option<S>) -> Result<GpuDisplay, GpuDisplayError> { in open_x() argument
184 Ok(GpuDisplay { inner, is_x: true }) in open_x()
193 ) -> Result<GpuDisplay, GpuDisplayError> { in open_wayland() argument
199 Ok(GpuDisplay { inner, is_x: false }) in open_wayland()
202 pub fn open_stub() -> Result<GpuDisplay, GpuDisplayError> { in open_stub()
205 Ok(GpuDisplay { inner, is_x: false }) in open_stub()
328 impl AsRawDescriptor for GpuDisplay { implementation
/external/crosvm/gpu_display/examples/
Dsimple_open.rs1 use gpu_display::GpuDisplay;
4 let mut disp = GpuDisplay::open_x(None::<&str>).unwrap(); in main()
Dsimple.rs8 let mut disp = GpuDisplay::open_wayland(None::<&str>).unwrap(); in main()
/external/crosvm/devices/src/virtio/gpu/
Dvirtio_gpu.rs47 display_import: Option<(Rc<RefCell<GpuDisplay>>, u32)>,
73 display: Rc<RefCell<GpuDisplay>>,
116 display: GpuDisplay, in new() argument
192 pub fn display(&mut self) -> &Rc<RefCell<GpuDisplay>> { in display() argument
Dmod.rs220 fn display(&mut self) -> &Rc<RefCell<GpuDisplay>> { in display() argument
861 fn build(&self) -> std::result::Result<GpuDisplay, GpuDisplayError> { in build() argument
863 DisplayBackend::Wayland(path) => GpuDisplay::open_wayland(path.as_ref()), in build()
864 DisplayBackend::X(display) => GpuDisplay::open_x(display.as_ref()), in build()
865 DisplayBackend::Stub => GpuDisplay::open_stub(), in build()