Revert "exynos4: gralloc: allow skipping bufferMask change on free"

This reverts commit 9e1e7fe726.

Change-Id: I839928cdaf79486b74b87d999d3b0508520799c0
This commit is contained in:
Shilin Victor 2019-02-24 01:24:54 +03:00
parent 8af7c99f0d
commit ca4cd7f5c3
2 changed files with 1 additions and 6 deletions

View File

@ -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)

View File

@ -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) {