summaryrefslogtreecommitdiffstats
path: root/modules/gralloc/gralloc.cpp
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2012-04-13 10:08:47 -0700
committerEino-Ville Talvala <etalvala@google.com>2012-05-07 11:01:17 -0700
commit984272d92e40941f3d140f2cecb5f05986ac66b1 (patch)
tree53323458e5a87e09ffaf6695114faa23db988be5 /modules/gralloc/gralloc.cpp
parent3f86dbb657e21ead15c86430932aa383882ec1e2 (diff)
downloadhardware_libhardware-984272d92e40941f3d140f2cecb5f05986ac66b1.zip
hardware_libhardware-984272d92e40941f3d140f2cecb5f05986ac66b1.tar.gz
hardware_libhardware-984272d92e40941f3d140f2cecb5f05986ac66b1.tar.bz2
Add RAW_SENSOR to gralloc sample
Change-Id: I0621bd70896385c3d522d283a1be714f5f29df3b
Diffstat (limited to 'modules/gralloc/gralloc.cpp')
-rw-r--r--modules/gralloc/gralloc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gralloc/gralloc.cpp b/modules/gralloc/gralloc.cpp
index a6b4edd..99aeb01 100644
--- a/modules/gralloc/gralloc.cpp
+++ b/modules/gralloc/gralloc.cpp
@@ -219,6 +219,7 @@ static int gralloc_alloc(alloc_device_t* dev,
case HAL_PIXEL_FORMAT_RGB_565:
case HAL_PIXEL_FORMAT_RGBA_5551:
case HAL_PIXEL_FORMAT_RGBA_4444:
+ case HAL_PIXEL_FORMAT_RAW_SENSOR:
bpp = 2;
break;
default: