crosvm/gpu_display/examples/simple.rs
Zach Reizner 20d71f8928 gpu_display: provides wayland based output for virtio-gpu
This provides virtual display style output, useful for debugging
virtio-gpu. Although using virtio-gpu for display purposes clashes with
the more integreated virtio-wayland support, it is nonetheless helpful
for debugging virtio-gpu, and is technically required to fully implement
that device.

TEST=cargo build -p gpu_display
BUG=chromium:837073
CQ-DEPEND=CL:1096300

Change-Id: I59f895e951ef593d4119e7558168dd34223519ee
Reviewed-on: https://chromium-review.googlesource.com/1043446
Commit-Ready: Zach Reizner <zachr@chromium.org>
Tested-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
2018-07-09 15:48:21 -07:00

11 lines
262 B
Rust

extern crate gpu_display;
use gpu_display::*;
fn main() {
let mut disp = GpuDisplay::new().unwrap();
let surface_id = disp.create_surface(None, 1280, 1024).unwrap();
while !disp.close_requested(surface_id) {
disp.dispatch_events();
}
}