Searched refs:scratch_pool (Results 1 – 1 of 1) sorted by relevance
165 scratch_pool: VaSurfacePool<()>, field212 let mut scratch_pool = VaSurfacePool::new( in new() localVariable220 scratch_pool.add_frames(vec![(); INITIAL_SCRATCH_POOL_SIZE])?; in new()225 scratch_pool, in new()256 if self.scratch_pool.num_free_frames() == 0 { in new_scratch_picture()257 if self.scratch_pool.num_managed_frames() >= MAX_SCRATCH_POOL_SIZE { in new_scratch_picture()264 self.scratch_pool.num_managed_frames() in new_scratch_picture()266 self.scratch_pool.add_frames(vec![()])?; in new_scratch_picture()270 self.scratch_pool.get_surface().ok_or(StatelessBackendError::OutOfResources)?; in new_scratch_picture()