Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 462785fa authored by Romain Guy's avatar Romain Guy
Browse files

Add a bit more doc to TextureView

Change-Id: Ib76c80d8f70ede1bb63db319bca1e93c489def4d
parent 043a6b1e
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -93,6 +93,11 @@ import android.util.Log;
 * been invoked.) It is therefore highly recommended you use a listener to
 * been invoked.) It is therefore highly recommended you use a listener to
 * be notified when the SurfaceTexture becomes available.</p>
 * be notified when the SurfaceTexture becomes available.</p>
 * 
 * 
 * <p>It is important to note that only one producer can use the TextureView.
 * For instance, if you use a TextureView to display the camera preview, you
 * cannot use {@link #lockCanvas()} to draw onto the TextureView at the same
 * time.</p>
 * 
 * @see SurfaceView
 * @see SurfaceView
 * @see SurfaceTexture
 * @see SurfaceTexture
 */
 */
@@ -523,6 +528,10 @@ public class TextureView extends View {
     * rectangle is specified, in which case, non-dirty pixels will be
     * rectangle is specified, in which case, non-dirty pixels will be
     * preserved.</p>
     * preserved.</p>
     * 
     * 
     * <p>This method can only be used if the underlying surface is not already
     * owned by another producer. For instance, if the TextureView is being used
     * to render the camera's preview you cannot invoke this method.</p>
     * 
     * @return A Canvas used to draw into the surface.
     * @return A Canvas used to draw into the surface.
     * 
     * 
     * @see #lockCanvas(android.graphics.Rect) 
     * @see #lockCanvas(android.graphics.Rect)