crosvm/gpu_display/examples/simple.rs
Stephen Barber d6945a09b8 crosvm: add license blurb to all files
A few files were missing license blurbs at the top, so update them all
to include them.

BUG=none
TEST=none

Change-Id: Ida101be2e5c255b8cffeb15f5b93f63bfd1b130b
Reviewed-on: https://chromium-review.googlesource.com/1577900
Commit-Ready: Stephen Barber <smbarber@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
2019-04-24 15:51:38 -07:00

14 lines
420 B
Rust

// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
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();
}
}