Lines Matching refs:allocUsage
941 uint64_t allocUsage = getBufferUsage(usage); in allocOutBuf() local
943 allocUsage |= VendorGraphicBufferUsage::NO_AFBC; in allocOutBuf()
948 w, h, format, freeDstBuf.bufferHandle, allocUsage, usage); in allocOutBuf()
956 error = gAllocator.allocate(w, h, format, 1, allocUsage, &dstBuffer, &dstStride, "HWC"); in allocOutBuf()
1038 uint64_t allocUsage = 0; in getBufferUsage() local
1040 allocUsage = BufferUsage::CPU_READ_OFTEN | in getBufferUsage()
1043 allocUsage = BufferUsage::CPU_READ_NEVER | in getBufferUsage()
1050 allocUsage |= BufferUsage::PROTECTED; in getBufferUsage()
1051 allocUsage &= ~VendorGraphicBufferUsage::PRIVATE_NONSECURE; in getBufferUsage()
1053 allocUsage |= BufferUsage::PROTECTED; in getBufferUsage()
1054 allocUsage |= VendorGraphicBufferUsage::PRIVATE_NONSECURE; in getBufferUsage()
1057 return allocUsage; in getBufferUsage()