1 // Copyright 2021 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 //! 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::{ 21 ImageAllocationInfo, ImageMemoryRequirements, RutabagaGralloc, RutabagaGrallocFlags, 22 }; 23