Lines Matching refs:GrallocBackend
205 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()
290 _backend = GrallocBackend::Vulkano; in determine_optimal_backend()
338 .get_mut(&GrallocBackend::Vulkano) in import_and_map()