Merge "gralloc: Fix the result of SET_SINGLE_BUFFER_MODE operation" into dev-2.0
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
a39bb214dc
@@ -484,10 +484,10 @@ int gralloc_perform(struct gralloc_module_t const* module,
|
||||
{
|
||||
private_handle_t* hnd = va_arg(args, private_handle_t*);
|
||||
uint32_t *enable = va_arg(args, uint32_t*);
|
||||
if (private_handle_t::validate(hnd)) {
|
||||
return res;
|
||||
}
|
||||
if (!private_handle_t::validate(hnd)) {
|
||||
setMetaData(hnd, SET_SINGLE_BUFFER_MODE, enable);
|
||||
res = 0;
|
||||
}
|
||||
} break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user