libdmabufheap: Add legacy_align to Alloc() interface for legacy ion use

Suren pointed out that we don't have a way to support alignment
for legacy ION cases (it doesn't do anything in the non-legacy
case).

So this patch adds an additional optional argument to support
alignment, which can be deprecated after legacy ION kernels are
no longer supported.

Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: I727ab981cf749643bb027bbc97728ce2c69d1a63
2 files changed
tree: 660601061292abb22df49db9dfc5faf23c840279
  1. include/
  2. tests/
  3. Android.bp
  4. BufferAllocator.cpp
  5. BufferAllocatorWrapper.cpp