Home | History | Annotate | Download | only in libgralloc

Lines Matching refs:usage

55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage,
73 qdutils::MDSS_V5) && (usage & GRALLOC_USAGE_PROTECTED)) {
79 err = mAllocCtrl->allocate(data, usage);
95 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) {
98 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_BLOCK) {
101 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_CC) {
107 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) {
112 if (usage & (GRALLOC_USAGE_HW_TEXTURE |
115 else if (usage & GRALLOC_USAGE_HW_CAMERA_ZSL)
123 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) {
127 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) {
131 if (usage & GRALLOC_USAGE_HW_CAMERA_READ) {
135 if (usage & GRALLOC_USAGE_HW_COMPOSER) {
139 if (usage & GRALLOC_USAGE_HW_TEXTURE) {
175 int gpu_context_t::gralloc_alloc_framebuffer_locked(size_t size, int usage,
181 if (usage & GRALLOC_HEAP_MASK) {
201 int newUsage = (usage & ~GRALLOC_USAGE_HW_FB) | GRALLOC_USAGE_HW_2D;
235 int gpu_context_t::gralloc_alloc_framebuffer(size_t size, int usage,
240 int err = gralloc_alloc_framebuffer_locked(size, usage, pHandle);
245 int gpu_context_t::alloc_impl(int w, int h, int format, int usage,
257 //the usage bits, gralloc assigns a format.
260 if(usage & GRALLOC_USAGE_HW_VIDEO_ENCODER)
262 else if(usage & GRALLOC_USAGE_HW_CAMERA_READ)
264 else if(usage & GRALLOC_USAGE_HW_CAMERA_WRITE)
277 if ((usage & GRALLOC_USAGE_EXTERNAL_DISP) ||
278 (usage & GRALLOC_USAGE_PROTECTED)) {
284 if((usage & GRALLOC_USAGE_HW_FB) &&
293 err = gralloc_alloc_framebuffer(size, usage, pHandle);
295 err = gralloc_alloc_buffer(size, usage, pHandle, bufferType,
334 int usage, buffer_handle_t* pHandle,
341 return gpu->alloc_impl(w, h, format, usage, pHandle, pStride, 0);
344 int format, int usage,
352 return gpu->alloc_impl(w, h, format, usage, pHandle, pStride, bufferSize);