android_hardware_qcom_display/libgralloc
Jeremy Gebben 115d446fcb libgralloc: fix libgralloc error codes
Several ioctl calls were returning -1 instead of -errno,
which may confuse upper layers, especially when the error
is -ENOMEM.  Also move some existing "err = -errno" calls
to the top of if statements so that errno cannot change
by libc calls in the error handling code.

(cherry picked from commit a8eda532452651eb1fbae419319455de2a078ef0)

Change-Id: I181f98d5a261e8e3e1b3f6ecd3ba288e7b4b5607
2012-03-16 20:42:36 -05:00
..
alloc_controller.cpp display: Add support for protected heaps 2012-03-16 20:34:50 -05:00
alloc_controller.h display: Add support for pmem in the new gralloc 2011-11-20 21:42:37 -08:00
Android.mk libgralloc: libqcomui: add QCOM_HARDWARE CFLAG 2012-01-01 17:57:26 -05:00
ashmemalloc.cpp display: Standardize debug logging for all memory types 2012-03-16 20:42:12 -05:00
ashmemalloc.h gralloc: Refactor, ion support 2011-11-16 13:43:12 -08:00
framebuffer.cpp Make SurfaceFlinger respect swapinterval property 2012-03-16 20:30:54 -05:00
gpu.cpp add GRALLOC_USAGE_PRIVATE_UNSYNCHRONIZED for explicit synchronization. 2012-03-16 20:35:18 -05:00
gpu.h gralloc: Refactor, ion support 2011-11-16 13:43:12 -08:00
gr.h gralloc: Refactor, ion support 2011-11-16 13:43:12 -08:00
gralloc_priv.h add GRALLOC_USAGE_PRIVATE_UNSYNCHRONIZED for explicit synchronization. 2012-03-16 20:35:18 -05:00
gralloc.cpp display: Add support for pmem in the new gralloc 2011-11-20 21:42:37 -08:00
ionalloc.cpp libgralloc: fix libgralloc error codes 2012-03-16 20:42:36 -05:00
ionalloc.h gralloc: Refactor, ion support 2011-11-16 13:43:12 -08:00
mapper.cpp display: Add support for protected heaps 2012-03-16 20:34:50 -05:00
memalloc.h display: Add support for pmem in the new gralloc 2011-11-20 21:42:37 -08:00
MODULE_LICENSE_APACHE2 gralloc: Refactor, ion support 2011-11-16 13:43:12 -08:00
NOTICE gralloc: Refactor, ion support 2011-11-16 13:43:12 -08:00
pmem_bestfit_alloc.cpp Dump PMEM usage in out of memory cases for debugging 2012-03-16 20:41:44 -05:00
pmem_bestfit_alloc.h display: Add support for pmem in the new gralloc 2011-11-20 21:42:37 -08:00
pmemalloc.cpp libgralloc: fix libgralloc error codes 2012-03-16 20:42:36 -05:00
pmemalloc.h display: Add support for pmem in the new gralloc 2011-11-20 21:42:37 -08:00