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*);
|
private_handle_t* hnd = va_arg(args, private_handle_t*);
|
||||||
uint32_t *enable = va_arg(args, uint32_t*);
|
uint32_t *enable = va_arg(args, uint32_t*);
|
||||||
if (private_handle_t::validate(hnd)) {
|
if (!private_handle_t::validate(hnd)) {
|
||||||
return res;
|
|
||||||
}
|
|
||||||
setMetaData(hnd, SET_SINGLE_BUFFER_MODE, enable);
|
setMetaData(hnd, SET_SINGLE_BUFFER_MODE, enable);
|
||||||
|
res = 0;
|
||||||
|
}
|
||||||
} break;
|
} break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user