diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2015-07-17 16:53:58 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-17 16:54:04 +0000 |
commit | 48e5df72f8a7fdcf6278fc395376fbaf98444a43 (patch) | |
tree | 890ff786d667f8a2c9c06a95767cf070fced6d32 /services/camera/libcameraservice/device3/Camera3StreamInterface.h | |
parent | 9febc8a664d25eaa699134682aa455ab4d7f62a2 (diff) | |
parent | b25e3c87724b6147ed1da7c1d6617c39bfce2fbf (diff) | |
download | frameworks_av-48e5df72f8a7fdcf6278fc395376fbaf98444a43.zip frameworks_av-48e5df72f8a7fdcf6278fc395376fbaf98444a43.tar.gz frameworks_av-48e5df72f8a7fdcf6278fc395376fbaf98444a43.tar.bz2 |
Merge "Camera: Add hidden experimental tearDown method." into mnc-dev
Diffstat (limited to 'services/camera/libcameraservice/device3/Camera3StreamInterface.h')
-rw-r--r-- | services/camera/libcameraservice/device3/Camera3StreamInterface.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/device3/Camera3StreamInterface.h b/services/camera/libcameraservice/device3/Camera3StreamInterface.h index 6c87a45..c086eaf 100644 --- a/services/camera/libcameraservice/device3/Camera3StreamInterface.h +++ b/services/camera/libcameraservice/device3/Camera3StreamInterface.h @@ -152,6 +152,20 @@ class Camera3StreamInterface : public virtual RefBase { virtual status_t cancelPrepare() = 0; /** + * Tear down memory for this stream. This frees all unused gralloc buffers + * allocated for this stream, but leaves it ready for operation afterward. + * + * May only be called in the CONFIGURED state, and keeps the stream in + * the CONFIGURED state. + * + * Returns: + * OK if teardown succeeded. + * INVALID_OPERATION if not in the CONFIGURED state + * NO_INIT in case of a serious error from the HAL device + */ + virtual status_t tearDown() = 0; + + /** * Fill in the camera3_stream_buffer with the next valid buffer for this * stream, to hand over to the HAL. * |