Lines Matching refs:usage
55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, in gralloc_alloc_buffer() argument
73 qdutils::MDSS_V5) && (usage & GRALLOC_USAGE_PROTECTED)) { in gralloc_alloc_buffer()
79 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer()
95 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer()
98 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_BLOCK) { in gralloc_alloc_buffer()
101 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_CC) { in gralloc_alloc_buffer()
107 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer()
112 if (usage & (GRALLOC_USAGE_HW_TEXTURE | in gralloc_alloc_buffer()
115 else if (usage & GRALLOC_USAGE_HW_CAMERA_ZSL) in gralloc_alloc_buffer()
123 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer()
127 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer()
131 if (usage & GRALLOC_USAGE_HW_CAMERA_READ) { in gralloc_alloc_buffer()
135 if (usage & GRALLOC_USAGE_HW_COMPOSER) { in gralloc_alloc_buffer()
139 if (usage & GRALLOC_USAGE_HW_TEXTURE) { in gralloc_alloc_buffer()
175 int gpu_context_t::gralloc_alloc_framebuffer_locked(size_t size, int usage, in gralloc_alloc_framebuffer_locked() argument
181 if (usage & GRALLOC_HEAP_MASK) { in gralloc_alloc_framebuffer_locked()
201 int newUsage = (usage & ~GRALLOC_USAGE_HW_FB) | GRALLOC_USAGE_HW_2D; in gralloc_alloc_framebuffer_locked()
235 int gpu_context_t::gralloc_alloc_framebuffer(size_t size, int usage, in gralloc_alloc_framebuffer() argument
240 int err = gralloc_alloc_framebuffer_locked(size, usage, pHandle); in gralloc_alloc_framebuffer()
245 int gpu_context_t::alloc_impl(int w, int h, int format, int usage, in alloc_impl() argument
260 if(usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) in alloc_impl()
262 else if(usage & GRALLOC_USAGE_HW_CAMERA_READ) in alloc_impl()
264 else if(usage & GRALLOC_USAGE_HW_CAMERA_WRITE) in alloc_impl()
268 (usage & GRALLOC_USAGE_SW_WRITE_MASK || in alloc_impl()
269 usage & GRALLOC_USAGE_SW_READ_MASK)) { in alloc_impl()
283 if ((usage & GRALLOC_USAGE_EXTERNAL_DISP) || in alloc_impl()
284 (usage & GRALLOC_USAGE_PROTECTED)) { in alloc_impl()
290 if((usage & GRALLOC_USAGE_HW_FB) && in alloc_impl()
299 err = gralloc_alloc_framebuffer(size, usage, pHandle); in alloc_impl()
301 err = gralloc_alloc_buffer(size, usage, pHandle, bufferType, in alloc_impl()
340 int usage, buffer_handle_t* pHandle, in gralloc_alloc() argument
347 return gpu->alloc_impl(w, h, format, usage, pHandle, pStride, 0); in gralloc_alloc()
350 int format, int usage, in gralloc_alloc_size() argument
358 return gpu->alloc_impl(w, h, format, usage, pHandle, pStride, bufferSize); in gralloc_alloc_size()