gralloc: Fix incorrect flag usage on old ion API

The secure flag gets sent only with the new ION API

Change-Id: Ia649500474b0c8384f4b45d599fcff54644005aa
This commit is contained in:
Naseer Ahmed
2013-03-05 21:17:29 -05:00
parent 893a34a75b
commit eb2e105188

View File

@@ -85,11 +85,11 @@ int IonAlloc::alloc_buffer(alloc_data& data)
#else
ionAllocData.heap_mask = data.flags & ~ION_SECURE;
ionAllocData.flags = data.uncached ? 0 : ION_FLAG_CACHED;
#endif
// ToDo: replace usage of alloc data structure with
// ionallocdata structure.
if (data.flags & ION_SECURE)
ionAllocData.flags |= ION_SECURE;
#endif
err = open_device();
if (err)