summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-12-14 02:53:40 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-12-14 02:53:40 +0000
commit41a159851629696a9a94b620fb1935c2bc81db9e (patch)
tree6cc4734d1621740cbfe89865dbbbef54731289e9
parentf22d126815ab111f7e80bf9d1e8f47ff3fd14002 (diff)
parent0efa358cc9261e06365aa625430f06be817b3c59 (diff)
downloadlibhardware-41a159851629696a9a94b620fb1935c2bc81db9e.tar.gz
Snap for 9401934 from 0efa358cc9261e06365aa625430f06be817b3c59 to udc-release
Change-Id: If01f538d9efcce5dd8231a5c3e060cae9ba8e9ad
-rw-r--r--modules/gralloc/gralloc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gralloc/gralloc.cpp b/modules/gralloc/gralloc.cpp
index 87bda975..f7ea01cf 100644
--- a/modules/gralloc/gralloc.cpp
+++ b/modules/gralloc/gralloc.cpp
@@ -224,7 +224,11 @@ static int gralloc_alloc(alloc_device_t* dev,
case HAL_PIXEL_FORMAT_RAW16:
bytesPerPixel = 2;
break;
+ case HAL_PIXEL_FORMAT_BLOB:
+ bytesPerPixel = 1;
+ break;
default:
+ ALOGE("gralloc_alloc bad format %d", format);
return -EINVAL;
}