summaryrefslogtreecommitdiffstats
path: root/core/java/android/hardware
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2014-06-13 00:26:29 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-06-12 17:09:07 +0000
commitfb587f4f6b132a06b08a3fd4b2b1206dcb58224a (patch)
tree4b52c46095371e2ef2f41699b57d35795b071025 /core/java/android/hardware
parent62e23396e714bb1c806bf191a6a05cf3ab43535a (diff)
parent5ae1ca5b6932b27f8d3d5a3b4a124fe2b5b84e27 (diff)
downloadframeworks_base-fb587f4f6b132a06b08a3fd4b2b1206dcb58224a.zip
frameworks_base-fb587f4f6b132a06b08a3fd4b2b1206dcb58224a.tar.gz
frameworks_base-fb587f4f6b132a06b08a3fd4b2b1206dcb58224a.tar.bz2
Merge "camera2 docs: Fix instructions for using SurfaceView." into lmp-preview-dev
Diffstat (limited to 'core/java/android/hardware')
-rw-r--r--core/java/android/hardware/camera2/CameraDevice.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/java/android/hardware/camera2/CameraDevice.java b/core/java/android/hardware/camera2/CameraDevice.java
index 77d0c41..1f89d33 100644
--- a/core/java/android/hardware/camera2/CameraDevice.java
+++ b/core/java/android/hardware/camera2/CameraDevice.java
@@ -154,10 +154,11 @@ public abstract class CameraDevice implements AutoCloseable {
*
* <ul>
*
- * <li>For drawing to a {@link android.view.SurfaceView SurfaceView}: Set the size of the
- * Surface with {@link android.view.SurfaceHolder#setFixedSize} to be one of the sizes
- * returned by
- * {@link StreamConfigurationMap#getOutputSizes(Class) getOutputSizes(SurfaceView.class)}
+ * <li>For drawing to a {@link android.view.SurfaceView SurfaceView}: Once the SurfaceView's
+ * Surface is {@link android.view.SurfaceHolder.Callback#surfaceCreated created}, set the
+ * size of the Surface with {@link android.view.SurfaceHolder#setFixedSize} to be one of the
+ * sizes returned by
+ * {@link StreamConfigurationMap#getOutputSizes(Class) getOutputSizes(SurfaceHolder.class)}
* and then obtain the Surface by calling {@link android.view.SurfaceHolder#getSurface}.</li>
*
* <li>For accessing through an OpenGL texture via a