From 082c723cf024dcad75ad895dfed7ec348d7a67af Mon Sep 17 00:00:00 2001 From: "andrew.boren" Date: Sun, 5 Aug 2012 23:25:41 -0700 Subject: [PATCH] qcom/display: Fix for copybit_c2d, Add USE_ION ifdef. Change-Id: Ie6180e4cc73d1b7e3a96702bcba9f4a204b96a57 --- libcopybit/copybit_c2d.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libcopybit/copybit_c2d.cpp b/libcopybit/copybit_c2d.cpp index 4022385..1f6b74c 100644 --- a/libcopybit/copybit_c2d.cpp +++ b/libcopybit/copybit_c2d.cpp @@ -47,7 +47,9 @@ #include 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;