Camera: defer the timing to free unused buffers

To avoid frequent buffer allocation/deallocation, the unused buffers
will be freed if they are no longer used after a threshold counter.

Bug: 158637309
Test: GCA

Change-Id: I6b0d4ceb02eec859bbff6e9fe7b02fb7fb3f9280
2 files changed
tree: 4d3c377d892acad904418c312b822d73a4541aef
  1. common/
  2. devices/
  3. .clang-format
  4. Android.bp
  5. PREUPLOAD.cfg