diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2013-08-14 11:37:00 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2013-08-23 14:08:27 -0700 |
commit | abaa51d3ca31f0eda99e1d271e6dc64c877dbf58 (patch) | |
tree | 52f4cc1078708f7c0099fded06dcb01daf6ca6bb /services/camera/libcameraservice/common | |
parent | 62c1a46eec047eb5fbc4b90432ec1ce65b76fb75 (diff) | |
download | frameworks_av-abaa51d3ca31f0eda99e1d271e6dc64c877dbf58.zip frameworks_av-abaa51d3ca31f0eda99e1d271e6dc64c877dbf58.tar.gz frameworks_av-abaa51d3ca31f0eda99e1d271e6dc64c877dbf58.tar.bz2 |
Camera2: Add flush support
- On HAL2 devices, fall back to wait until idle
- On HAL3 devices, call HAL flush method
Bug: 9758581
Change-Id: Ie1c570a15f6590a1ee6c271e3b989c48079b468a
Diffstat (limited to 'services/camera/libcameraservice/common')
-rw-r--r-- | services/camera/libcameraservice/common/CameraDeviceBase.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/common/CameraDeviceBase.h b/services/camera/libcameraservice/common/CameraDeviceBase.h index aa92bec..ebbd4ea 100644 --- a/services/camera/libcameraservice/common/CameraDeviceBase.h +++ b/services/camera/libcameraservice/common/CameraDeviceBase.h @@ -209,6 +209,13 @@ class CameraDeviceBase : public virtual RefBase { */ virtual status_t pushReprocessBuffer(int reprocessStreamId, buffer_handle_t *buffer, wp<BufferReleasedListener> listener) = 0; + + /** + * Flush all pending and in-flight requests. Blocks until flush is + * complete. + */ + virtual status_t flush() = 0; + }; }; // namespace android |