crosvm/gpu_display/examples/simple.rs
Zach Reizner a1422e6bca fix warning and bit rotted tests uncovered by kokoro
TEST=run kokoro presubmit
BUG=None

Change-Id: I301551f8f58263f1a8b7a8276867881cb17517ab
Reviewed-on: https://chromium-review.googlesource.com/1236889
Commit-Ready: Zach Reizner <zachr@chromium.org>
Tested-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
2018-09-22 01:43:11 -07:00

11 lines
278 B
Rust

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