summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaseer Ahmed <naseer@codeaurora.org>2016-05-03 16:27:17 -0400
committerGerrit - the friendly Code Review server <code-review@localhost>2016-05-17 16:31:40 -0700
commit5e6e7662f0ba9ce1acfe5c05d6475a403af471f4 (patch)
tree40c7997d161b7b5f8e8df0956506b84b5dbad0cd
parentab4246dba82fe602c7784c217494adfaab8e521c (diff)
downloadhardware_qcom_display-5e6e7662f0ba9ce1acfe5c05d6475a403af471f4.tar.gz
hardware_qcom_display-5e6e7662f0ba9ce1acfe5c05d6475a403af471f4.tar.bz2
hardware_qcom_display-5e6e7662f0ba9ce1acfe5c05d6475a403af471f4.zip
gralloc: Handle RAW_OPAQUE formats similar to blob
Change-Id: I957b9d5902f6ea3714b46f3900e9f039b4667f0a CRs-fixed: 1006155
-rw-r--r--libgralloc/alloc_controller.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgralloc/alloc_controller.cpp b/libgralloc/alloc_controller.cpp
index 9eb786eee..39acf6624 100644
--- a/libgralloc/alloc_controller.cpp
+++ b/libgralloc/alloc_controller.cpp
@@ -257,6 +257,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);
@@ -609,6 +610,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__);