diff options
author | Naseer Ahmed <naseer@codeaurora.org> | 2016-05-03 16:27:17 -0400 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-05-09 08:34:34 -0700 |
commit | 6c6c58a99149721ec759379dc9ac0accfc46598d (patch) | |
tree | 015144acd27070624362d6ada8155c31f3803e3e /libgralloc | |
parent | d30696d61b4553d58e591aaaad0808cdf70e18cd (diff) | |
download | display-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.cpp | 2 |
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__); |