mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
Revert "gralloc: switch to UMP-only allocations"
This reverts commit 33b21658f3
.
Change-Id: I17953c198b97404df00a285c053d5713e9fe022f
This commit is contained in:
parent
7cf845b07f
commit
6cec77e050
1 changed files with 0 additions and 2 deletions
|
@ -296,7 +296,6 @@ static int gralloc_alloc_buffer(alloc_device_t* dev, size_t size, int usage,
|
|||
}
|
||||
|
||||
ret = -1;
|
||||
#if 0
|
||||
if (usage & (GRALLOC_USAGE_HW_COMPOSER | GRALLOC_USAGE_HW_ION)) {
|
||||
ALOGV("%s: Allocating for HWC via ION...", __func__);
|
||||
// the handle is guaranteed to have this usage flag set
|
||||
|
@ -307,7 +306,6 @@ static int gralloc_alloc_buffer(alloc_device_t* dev, size_t size, int usage,
|
|||
priv_alloc_flag = priv_alloc_flag | private_handle_t::PRIV_FLAGS_GRAPHICBUFFER;
|
||||
ret = gralloc_alloc_ion(dev, size, usage, format, &ion_fd, &ion_paddr, &priv_alloc_flag, &ump_mem_handle);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (ret < 0) {
|
||||
// may happen if ion carveout is out of memory, or if the
|
||||
|
|
Loading…
Reference in a new issue