gralloc1: Get color space from metadata handle
Get color space from metadata handle when color metadata is not defined Change-Id: Ibeb0ce187e6c5b59d626345cf4d0d275c67df034 CRs-Fixed: 2160262
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
2796e8c3e0
commit
cd30d49ee2
@@ -692,8 +692,11 @@ gralloc1_error_t BufferManager::Perform(int operation, va_list args) {
|
||||
break;
|
||||
}
|
||||
break;
|
||||
} else if (getMetaData(hnd, GET_COLOR_SPACE, color_space) != 0) {
|
||||
*color_space = 0;
|
||||
}
|
||||
if (getMetaData(hnd, GET_COLOR_SPACE, &color_metadata) != 0) {
|
||||
#else
|
||||
if (getMetaData(hnd, GET_COLOR_SPACE, color_space) != 0) {
|
||||
*color_space = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user