1 // Copyright 2019 The Chromium OS Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 use gpu_display::*; 6 main()7fn main() { 8 let mut disp = GpuDisplay::open_wayland(None::<&str>).unwrap(); 9 let surface_id = disp.create_surface(None, 1280, 1024).unwrap(); 10 disp.flip(surface_id); 11 disp.commit(surface_id); 12 while !disp.close_requested(surface_id) { 13 disp.dispatch_events(); 14 } 15 } 16