summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2022-12-13 01:50:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-12-13 01:50:26 +0000
commit0efa358cc9261e06365aa625430f06be817b3c59 (patch)
tree6cc4734d1621740cbfe89865dbbbef54731289e9
parentf152fc48da555f2f470622cdd5c305bd870a9f23 (diff)
parent46fd7e6077c4380ee65d136bd312782a306e1314 (diff)
downloadlibhardware-0efa358cc9261e06365aa625430f06be817b3c59.tar.gz
Merge "Support HAL_PIXEL_FORMAT_BLOB in default gralloc"
-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;
}