From 469c35b3ca3d15e668a9a853077727ce392f544a Mon Sep 17 00:00:00 2001 From: Tony Lofthouse Date: Fri, 22 Jun 2012 16:28:43 -0500 Subject: hwc: publicly define omap specific usage flags Rebased from p-ics-mr1: 8323a55 hwc: publicly define omap specific usage flags Change-Id: I3bd14ca2d88192299de731c49eba15a90084b3fe Signed-off-by: Tony Lofthouse --- hwc/hal_public.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'hwc') diff --git a/hwc/hal_public.h b/hwc/hal_public.h index f4433ad..a7dfb08 100644 --- a/hwc/hal_public.h +++ b/hwc/hal_public.h @@ -173,5 +173,16 @@ IMG_buffer_format_public_t; #define HAL_PIXEL_FORMAT_TI_UNUSED 0x101 /* Free for use */ #define HAL_PIXEL_FORMAT_TI_NV12_1D 0x102 +#ifndef GRALLOC_USAGE_SYSTEM_HEAP +#define GRALLOC_USAGE_SYSTEM_HEAP GRALLOC_USAGE_PRIVATE_0 +#else +#error GRALLOC_USAGE_SYSTEM_HEAP should only be defined by hal_public.h +#endif + +#ifndef GRALLOC_USAGE_PHYS_CONTIG +#define GRALLOC_USAGE_PHYS_CONTIG GRALLOC_USAGE_PRIVATE_1 +#else +#error GRALLOC_USAGE_PHYS_CONTIG should only be defined by hal_public.h +#endif #endif /* HAL_PUBLIC_H */ -- cgit v1.1