gralloc: Fix heap_id_mask

heap_mask has changed to heap_id_mask in newer ion headers.

Change-Id: I605ea81a59660e1aaae2e688dca5fa27c74e79a8
This commit is contained in:
Naseer Ahmed
2014-04-11 19:59:39 -04:00
parent 07bded6ac9
commit 68ee7c0e3e

View File

@@ -73,7 +73,11 @@ int IonAlloc::alloc_buffer(alloc_data& data)
ionAllocData.len = data.size;
ionAllocData.align = data.align;
#ifdef QCOM_BSP
ionAllocData.heap_mask = data.flags & ~ION_SECURE;
#else
ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
#endif
ionAllocData.flags = data.uncached ? 0 : ION_FLAG_CACHED;
// ToDo: replace usage of alloc data structure with
// ionallocdata structure.