exynos4: gralloc: Ignore PRIV_FLAGS_FRAMEBUFFER

This commit is contained in:
Dominggoes Isakh 2018-08-25 20:18:15 +02:00 committed by Shilin Victor
parent 48d3ff42e8
commit 6cd6fedd47
1 changed files with 11 additions and 2 deletions

View File

@ -300,10 +300,14 @@ static int gralloc_register_buffer(gralloc_module_t const* module, buffer_handle
ALOGE("Unable to register handle 0x%x coming from different process: %d", (unsigned int)hnd, hnd->pid );
return 0;
}
sd
if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION)
err = gralloc_map(module, handle, &vaddr); */
if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) {
return 0;
}
pthread_mutex_lock(&s_map_lock);
if (!s_ump_is_open) {
@ -406,6 +410,11 @@ static int gralloc_unregister_buffer(gralloc_module_t const* module, buffer_hand
}
private_handle_t* hnd = (private_handle_t*)handle;
if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) {
hnd->base = 0;
return 0;
}
#ifdef USE_PARTIAL_FLUSH
if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_UMP)
if (!release_rect((int)hnd->ump_id))