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/Camera3OutputStreamInterface.h b/services/camera/libcameraservice/device3/Camera3OutputStreamInterface.h index 8107dd0..1719d74 100644 --- a/services/camera/libcameraservice/device3/Camera3OutputStreamInterface.h +++ b/services/camera/libcameraservice/device3/Camera3OutputStreamInterface.h
@@ -59,6 +59,11 @@ * */ virtual status_t detachBuffer(sp<GraphicBuffer>* buffer, int* fenceFd) = 0; + + /** + * Drop buffers if dropping is true. If dropping is false, do not drop buffers. + */ + virtual status_t dropBuffers(bool /*dropping*/) = 0; }; } // namespace camera3