libdmabufheap: Do not keep track of CPU Sync type for DMA-BUF fds.

Since the library does not have a way to track whether the fd has been
closed, the synctype data cached by it can get stale. It is also
incorrect to assume that the same BufferAllocator instance would be used
for CpuSyncStart() and CpuSyncEnd()(for instance, the fd maybe passed
over binder to another process after a CpuSyncStart() invocation).

Bug: 154310076
Test: atest DmabufHeapTest
Change-Id: Iea7190c5783f4dd556854cc45ae75630590c794f
Merged-In: Iea7190c5783f4dd556854cc45ae75630590c794f
6 files changed
tree: 4d2e675aa960c6f2093f39f4ef4e3e9f6bf3240a
  1. include/
  2. tests/
  3. Android.bp
  4. BufferAllocator.cpp
  5. BufferAllocatorWrapper.cpp