Home
last modified time | relevance | path

Searched refs:GrallocBackend (Results 1 – 1 of 1) sorted by relevance

/external/crosvm/rutabaga_gfx/src/rutabaga_gralloc/
Dgralloc.rs205 pub enum GrallocBackend { enum
215 grallocs: Map<GrallocBackend, Box<dyn Gralloc>>,
222 let mut grallocs: Map<GrallocBackend, Box<dyn Gralloc>> = Default::default(); in new()
225 grallocs.insert(GrallocBackend::System, system); in new()
235 grallocs.insert(GrallocBackend::Minigbm, gbm_device); in new()
242 grallocs.insert(GrallocBackend::Vulkano, vulkano); in new()
271 fn determine_optimal_backend(&self, _info: ImageAllocationInfo) -> GrallocBackend { in determine_optimal_backend() argument
278 let mut _backend = GrallocBackend::System; in determine_optimal_backend()
283 if self.grallocs.contains_key(&GrallocBackend::Minigbm) { in determine_optimal_backend()
284 _backend = GrallocBackend::Minigbm; in determine_optimal_backend()
[all …]