mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-12-26 13:10:56 +00:00
a1422e6bca
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>
11 lines
278 B
Rust
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();
|
|
}
|
|
}
|