OSDN Git Service

camera2 docs: Fix instructions for using SurfaceView.
authorEino-Ville Talvala <etalvala@google.com>
Thu, 12 Jun 2014 23:46:58 +0000 (16:46 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Fri, 13 Jun 2014 00:02:17 +0000 (17:02 -0700)
Bug: 15597178
Change-Id: I802369e61725451ddd8df855c384608c80e12693

core/java/android/hardware/camera2/CameraDevice.java

index 77d0c41..1f89d33 100644 (file)
@@ -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