diff options
-rw-r--r-- | core/java/android/view/TextureView.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/view/TextureView.java b/core/java/android/view/TextureView.java index c735d6b..c974ba1 100644 --- a/core/java/android/view/TextureView.java +++ b/core/java/android/view/TextureView.java @@ -93,6 +93,11 @@ import android.util.Log; * been invoked.) It is therefore highly recommended you use a listener to * 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 SurfaceTexture */ @@ -523,6 +528,10 @@ public class TextureView extends View { * rectangle is specified, in which case, non-dirty pixels will be * 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. * * @see #lockCanvas(android.graphics.Rect) |