commit | 63068520622543b57c8607612a4f44fbbef6a021 | [log] [tgz] |
---|---|---|
author | Chien-Yu Chen <cychen@google.com> | Mon Oct 23 15:59:49 2017 -0700 |
committer | Trevor Bunker <trevorbunker@google.com> | Fri Dec 01 07:44:28 2017 -0800 |
tree | ee625c543f5362737825928266ecb1dcd77d7959 | |
parent | 28565390a1094b3d33ccec23ab5325e0442dead3 [diff] [blame] |
camera: Drop pending preview for enableZsl shots If the device support ZSL, drop pending preview buffers to reduce the chance the rendering preview frames newer than the still frame during takePicture(). Test: CTS Bug: 67497723 Change-Id: I5f253a402a6302d31777ad4ca2878ef0d0d1ae44 Merged-In: I5f253a402a6302d31777ad4ca2878ef0d0d1ae44
diff --git a/services/camera/libcameraservice/device3/Camera3DummyStream.h b/services/camera/libcameraservice/device3/Camera3DummyStream.h index 492fb49..9710765 100644 --- a/services/camera/libcameraservice/device3/Camera3DummyStream.h +++ b/services/camera/libcameraservice/device3/Camera3DummyStream.h
@@ -57,6 +57,12 @@ virtual status_t detachBuffer(sp<GraphicBuffer>* buffer, int* fenceFd); /** + * Drop buffers for stream of streamId if dropping is true. If dropping is false, do not + * drop buffers for stream of streamId. + */ + virtual status_t dropBuffers(bool /*dropping*/) override; + + /** * Return if this output stream is for video encoding. */ bool isVideoStream() const;