Lines Matching refs:flags
49 static IMemAlloc* getAllocator(int flags) in getAllocator() argument
53 memalloc = alloc_ctrl->getAllocator(flags); in getAllocator()
62 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
63 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
65 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_map()
95 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
99 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_unmap()
185 if (hnd->flags & (private_handle_t::PRIV_FLAGS_USES_PMEM | in terminateBuffer()
192 hnd->flags); in terminateBuffer()
219 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_map_and_invalidate()
224 !(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map_and_invalidate()
226 hnd->flags |= private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_map_and_invalidate()
229 hnd->flags |= private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH; in gralloc_map_and_invalidate()
308 IMemAlloc* memalloc = getAllocator(hnd->flags); in gralloc_unlock()
310 if (hnd->flags & private_handle_t::PRIV_FLAGS_NEEDS_FLUSH) { in gralloc_unlock()
314 hnd->flags &= ~private_handle_t::PRIV_FLAGS_NEEDS_FLUSH; in gralloc_unlock()
315 } else if(hnd->flags & private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH) { in gralloc_unlock()
316 hnd->flags &= ~private_handle_t::PRIV_FLAGS_DO_NOT_FLUSH; in gralloc_unlock()
353 hnd->flags = private_handle_t::PRIV_FLAGS_USES_ION; in gralloc_perform()