summaryrefslogtreecommitdiff
path: root/libgralloc
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-09 08:34:34 -0700
commit6c6c58a99149721ec759379dc9ac0accfc46598d (patch)
tree015144acd27070624362d6ada8155c31f3803e3e /libgralloc
parentd30696d61b4553d58e591aaaad0808cdf70e18cd (diff)
downloaddisplay-6c6c58a99149721ec759379dc9ac0accfc46598d.tar.gz
gralloc: Handle RAW_OPAQUE formats similar to blob
Change-Id: I957b9d5902f6ea3714b46f3900e9f039b4667f0a CRs-fixed: 1006155
Diffstat (limited to 'libgralloc')
-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 cb1adecc..2a5d0996 100644
--- a/libgralloc/alloc_controller.cpp
+++ b/libgralloc/alloc_controller.cpp
@@ -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__);