Merge "gralloc1: Add support to provide interlace info"

This commit is contained in:
Linux Build Service Account
2017-06-13 14:07:11 -07:00
committed by Gerrit - the friendly Code Review server
4 changed files with 47 additions and 1 deletions

View File

@@ -771,6 +771,17 @@ gralloc1_error_t BufferManager::Perform(int operation, va_list args) {
AllocateBuffer(descriptor, hnd, size);
} break;
case GRALLOC1_MODULE_PERFORM_GET_INTERLACE_FLAG: {
private_handle_t *hnd = va_arg(args, private_handle_t *);
int *flag = va_arg(args, int *);
if (private_handle_t::validate(hnd) != 0) {
return GRALLOC1_ERROR_BAD_HANDLE;
}
if (getMetaData(hnd, GET_PP_PARAM_INTERLACED, flag) != 0) {
*flag = 0;
}
} break;
default:
break;
}