From 7d0674ceb16cc4771b1a57bcaf90ac1a22444226 Mon Sep 17 00:00:00 2001 From: Shuzhen Wang Date: Thu, 9 Feb 2017 17:19:12 -0800 Subject: [PATCH] Camera: Update doc to allow unchanged configs in finalizeOutputConfigs Bug: 35137641 Test: Compile Change-Id: I671fc13c005eee27c87041dce23c30f40a394443 --- core/java/android/hardware/camera2/CameraCaptureSession.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/java/android/hardware/camera2/CameraCaptureSession.java b/core/java/android/hardware/camera2/CameraCaptureSession.java index bcebb7dc594d1..dcd069d335e08 100644 --- a/core/java/android/hardware/camera2/CameraCaptureSession.java +++ b/core/java/android/hardware/camera2/CameraCaptureSession.java @@ -250,6 +250,10 @@ public abstract class CameraCaptureSession implements AutoCloseable { * application must then call {@link OutputConfiguration#addSurface} before finalizing the * configuration with this method.

* + *

If the provided OutputConfigurations are unchanged from session creation, this function + * call has no effect. This function must only be called once for a particular output + * configuration.

+ * *

The output Surfaces included by this list of * {@link OutputConfiguration OutputConfigurations} can be used as {@link CaptureRequest} * targets as soon as this call returns.