summaryrefslogtreecommitdiff
path: root/src/com/android/camera/imageprocessor/ZSLQueue.java
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-10-06 07:18:04 -0700
committerLinux Build Service Account <lnxbuild@localhost>2018-10-06 07:18:04 -0700
commit4feab910ab9efada7a911a8638856c55ee09b9ca (patch)
tree1fd24a47ee24950afa47b60839ad044b33a9bc06 /src/com/android/camera/imageprocessor/ZSLQueue.java
parentc6cde759cd7d38d28b3b2e75a36161b041cd6e9c (diff)
parent9530e578cb7c92f8abd1dbf921113387bfb9b047 (diff)
Merge 9530e578cb7c92f8abd1dbf921113387bfb9b047 on remote branchHEADp9.0
Change-Id: I8cb5d9eee763cfc5df1a95b1148cd054ffda62eb
Diffstat (limited to 'src/com/android/camera/imageprocessor/ZSLQueue.java')
-rwxr-xr-x[-rw-r--r--]src/com/android/camera/imageprocessor/ZSLQueue.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/com/android/camera/imageprocessor/ZSLQueue.java b/src/com/android/camera/imageprocessor/ZSLQueue.java
index 0509b8fb5..bf29267e3 100644..100755
--- a/src/com/android/camera/imageprocessor/ZSLQueue.java
+++ b/src/com/android/camera/imageprocessor/ZSLQueue.java
@@ -207,6 +207,19 @@ public class ZSLQueue {
}
}
+ public void clear() {
+ synchronized (mLock) {
+ for (int i = 0; i < mBuffer.length; i++) {
+ if (mBuffer[i] != null) {
+ mBuffer[i].closeImage();
+ mBuffer[i].closeMeta();
+ }
+ }
+ mImageHead = 0;
+ mMetaHead = 0;
+ }
+ }
+
private boolean checkImageRequirement(TotalCaptureResult captureResult) {
if( (captureResult.get(CaptureResult.LENS_STATE) != null &&
captureResult.get(CaptureResult.LENS_STATE).intValue() == CaptureResult.LENS_STATE_MOVING)