gralloc: Mark buffers used by HWC
Some clients need to distinguish between buffers going to HWC for composition and other regular buffers. Change-Id: Ia05a765afe2f8bd223f3e47edd0fb746d6ade531
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
5af429db7b
commit
e41ad9c8c1
@@ -115,6 +115,10 @@ int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage,
|
||||
flags |= private_handle_t::PRIV_FLAGS_CAMERA_READ;
|
||||
}
|
||||
|
||||
if (usage & GRALLOC_USAGE_HW_COMPOSER) {
|
||||
flags |= private_handle_t::PRIV_FLAGS_HW_COMPOSER;
|
||||
}
|
||||
|
||||
flags |= data.allocType;
|
||||
int eBaseAddr = int(eData.base) + eData.offset;
|
||||
private_handle_t *hnd = new private_handle_t(data.fd, size, flags,
|
||||
|
||||
Reference in New Issue
Block a user