xref: /aosp_15_r20/external/crosvm/rutabaga_gfx/src/rutabaga_gralloc/mod.rs (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1 // Copyright 2021 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 //! This module implements cross-platform allocation of window system buffers.
6 //! In addition, it may perform mappings of GPU buffers.  This is based on
7 //! "gralloc", a well-known Android hardware abstaction layer (HAL).
8 //!
9 //! <https://source.android.com/devices/graphics/arch-bq-gralloc>
10 
11 mod formats;
12 mod gralloc;
13 mod minigbm;
14 mod minigbm_bindings;
15 mod system_gralloc;
16 mod vulkano_gralloc;
17 
18 pub use formats::DrmFormat;
19 pub use gralloc::ImageAllocationInfo;
20 pub use gralloc::ImageMemoryRequirements;
21 pub use gralloc::RutabagaGralloc;
22 pub use gralloc::RutabagaGrallocBackendFlags;
23 pub use gralloc::RutabagaGrallocFlags;
24