qcom/display: Fix for copybit_c2d, Add USE_ION ifdef.

Change-Id: Ie6180e4cc73d1b7e3a96702bcba9f4a204b96a57
This commit is contained in:
andrew.boren 2012-08-05 23:25:41 -07:00 committed by Andrew Sutherland
parent f65d6e2124
commit 082c723cf0

View File

@ -47,7 +47,9 @@
#include <dlfcn.h>
using gralloc::IMemAlloc;
#ifdef USE_ION
using gralloc::IonController;
#endif
using gralloc::alloc_data;
C2D_STATUS (*LINK_c2dCreateSurface)( uint32 *surface_id,
@ -266,8 +268,10 @@ static uint32 c2d_get_gpuaddr( struct private_handle_t *handle)
memtype = KGSL_USER_MEM_TYPE_PMEM;
else if (handle->flags & private_handle_t::PRIV_FLAGS_USES_ASHMEM)
memtype = KGSL_USER_MEM_TYPE_ASHMEM;
#ifdef USE_ION
else if (handle->flags & private_handle_t::PRIV_FLAGS_USES_ION)
memtype = KGSL_USER_MEM_TYPE_ION;
#endif
else {
ALOGE("Invalid handle flags: 0x%x", handle->flags);
return 0;