• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 rendernode;
16 mod system_gralloc;
17 mod vulkano_gralloc;
18 
19 pub use formats::DrmFormat;
20 pub use gralloc::ImageAllocationInfo;
21 pub use gralloc::ImageMemoryRequirements;
22 pub use gralloc::RutabagaGralloc;
23 pub use gralloc::RutabagaGrallocFlags;
24