Display: Use flush instead of clean for ashmem
Change-Id: I9a4b8f4685620a8c650e03dd8c1a0203fa3b91e1
This commit is contained in:
parent
7f94fa6694
commit
d047ca874d
@ -131,8 +131,8 @@ int AshmemAlloc::clean_buffer(void *base, size_t size, int offset, int fd)
|
||||
// LOGD("%s: Clean buffer fd=%d base = %p size=%d PID=%d", __FUNCTION__,
|
||||
// fd, base, size, getpid());
|
||||
int err = 0;
|
||||
if (ioctl(fd, ASHMEM_CACHE_INV_RANGE, NULL)) {
|
||||
LOGE("ASHMEM_CACHE_INV_RANGE failed fd = %d", fd);
|
||||
if (ioctl(fd, ASHMEM_CACHE_FLUSH_RANGE, NULL)) {
|
||||
LOGE("ASHMEM_CACHE_FLUSH_RANGE failed fd = %d", fd);
|
||||
}
|
||||
|
||||
return err;
|
||||
|
Loading…
Reference in New Issue
Block a user