gralloc: Handle RAW_OPAQUE formats similar to blob

Change-Id: I957b9d5902f6ea3714b46f3900e9f039b4667f0a
CRs-fixed: 1006155
This commit is contained in:
Naseer Ahmed
2016-05-03 16:27:17 -04:00
committed by Gerrit - the friendly Code Review server
parent d30696d61b
commit 6c6c58a991

View File

@@ -270,6 +270,7 @@ void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format,
aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV21, height);
break;
case HAL_PIXEL_FORMAT_BLOB:
case HAL_PIXEL_FORMAT_RAW_OPAQUE:
break;
case HAL_PIXEL_FORMAT_NV21_ZSL:
aligned_w = ALIGN(width, 64);
@@ -628,6 +629,7 @@ unsigned int getSize(int format, int width, int height, int usage,
size = VENUS_BUFFER_SIZE(COLOR_FMT_NV21, width, height);
break;
case HAL_PIXEL_FORMAT_BLOB:
case HAL_PIXEL_FORMAT_RAW_OPAQUE:
if(height != 1) {
ALOGE("%s: Buffers with format HAL_PIXEL_FORMAT_BLOB \
must have height==1 ", __FUNCTION__);