1 // Copyright 2018 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 //! A crate for handling 2D and 3D virtio-gpu hypercalls, along with graphics 6 //! swapchain allocation and mapping. 7 8 mod cross_domain; 9 mod generated; 10 mod gfxstream; 11 #[macro_use] 12 mod macros; 13 #[cfg(any(feature = "gfxstream", feature = "virgl_renderer"))] 14 mod renderer_utils; 15 mod rutabaga_2d; 16 mod rutabaga_core; 17 mod rutabaga_gralloc; 18 mod rutabaga_utils; 19 mod virgl_renderer; 20 21 pub use crate::rutabaga_core::{Rutabaga, RutabagaBuilder}; 22 pub use crate::rutabaga_gralloc::{ 23 DrmFormat, ImageAllocationInfo, ImageMemoryRequirements, RutabagaGralloc, RutabagaGrallocFlags, 24 }; 25 pub use crate::rutabaga_utils::*; 26