diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2014-06-12 16:46:58 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2014-06-12 17:02:17 -0700 |
commit | 5ae1ca5b6932b27f8d3d5a3b4a124fe2b5b84e27 (patch) | |
tree | aab28e608435131d27065d0167c45443d1df1a5a /core/java/android/hardware | |
parent | b8cee5175d7cbc4901bd2d56aa6a380b1464a074 (diff) | |
download | frameworks_base-5ae1ca5b6932b27f8d3d5a3b4a124fe2b5b84e27.zip frameworks_base-5ae1ca5b6932b27f8d3d5a3b4a124fe2b5b84e27.tar.gz frameworks_base-5ae1ca5b6932b27f8d3d5a3b4a124fe2b5b84e27.tar.bz2 |
camera2 docs: Fix instructions for using SurfaceView.
Bug: 15597178
Change-Id: I802369e61725451ddd8df855c384608c80e12693
Diffstat (limited to 'core/java/android/hardware')
-rw-r--r-- | core/java/android/hardware/camera2/CameraDevice.java | 9 |
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 |