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;