mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-12-28 14:40:46 +00:00
12 lines
262 B
Rust
12 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();
|
||
|
}
|
||
|
}
|