QCamera2: Trigger buffer cache clean invalidate just after dequeuing

- This change moves the buffer cache clean invalidation
  right after the buffer is dequeued from the camera.
  This is done in order to avoid any race conditions
  that could occur when buffers are processed in
  different contexts at the same time.

Change-Id: I590e89bb4175afb57cb873631b210de6b7da48c6
12 files changed
tree: 0ad2d25f40c7d3fca3e803f93f4b9c77baba8606
  1. camera/