mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
Revert "exynos4: gralloc: allow skipping bufferMask change on free"
This reverts commit 9e1e7fe726
.
Change-Id: I839928cdaf79486b74b87d999d3b0508520799c0
This commit is contained in:
parent
8af7c99f0d
commit
ca4cd7f5c3
2 changed files with 1 additions and 6 deletions
|
@ -68,8 +68,4 @@ ifeq ($(TARGET_USES_GRALLOC1), true)
|
|||
LOCAL_CFLAGS += -DADVERTISE_GRALLOC1
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_USES_GRALLOC_HIDL), true)
|
||||
LOCAL_CFLAGS += -DUSE_GRALLOC_HIDL
|
||||
endif
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
|
|
@ -682,9 +682,8 @@ static int alloc_device_free(alloc_device_t* dev, buffer_handle_t handle)
|
|||
/* free this buffer */
|
||||
const size_t bufferSize = m->finfo.line_length * m->info.yres;
|
||||
int index = (hnd->base - m->framebuffer->base) / bufferSize;
|
||||
#ifndef USE_GRALLOC_HIDL
|
||||
|
||||
m->bufferMask &= ~(1<<index);
|
||||
#endif
|
||||
close(hnd->fd);
|
||||
|
||||
} else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_UMP) {
|
||||
|
|
Loading…
Reference in a new issue