rutabaga_gfx/
lib.rs

1// Copyright 2018 The ChromiumOS Authors
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
8mod cross_domain;
9mod generated;
10mod gfxstream;
11mod gfxstream_stub;
12#[macro_use]
13mod macros;
14#[cfg(any(feature = "gfxstream", feature = "virgl_renderer"))]
15mod renderer_utils;
16mod rutabaga_2d;
17mod rutabaga_core;
18mod rutabaga_gralloc;
19mod rutabaga_os;
20mod rutabaga_snapshot;
21mod rutabaga_utils;
22mod virgl_renderer;
23
24pub use crate::rutabaga_core::calculate_capset_mask;
25pub use crate::rutabaga_core::calculate_capset_names;
26pub use crate::rutabaga_core::Rutabaga;
27pub use crate::rutabaga_core::RutabagaBuilder;
28pub use crate::rutabaga_gralloc::DrmFormat;
29pub use crate::rutabaga_gralloc::ImageAllocationInfo;
30pub use crate::rutabaga_gralloc::ImageMemoryRequirements;
31pub use crate::rutabaga_gralloc::RutabagaGralloc;
32pub use crate::rutabaga_gralloc::RutabagaGrallocFlags;
33pub use crate::rutabaga_os::AsRawDescriptor;
34pub use crate::rutabaga_os::FromRawDescriptor as RutabagaFromRawDescriptor;
35pub use crate::rutabaga_os::IntoRawDescriptor as RutabagaIntoRawDescriptor;
36pub use crate::rutabaga_os::MappedRegion as RutabagaMappedRegion;
37pub use crate::rutabaga_os::SafeDescriptor as RutabagaDescriptor;
38pub use crate::rutabaga_utils::*;