summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-09-27 17:42:10 -0700
committerRomain Guy <romainguy@google.com>2011-09-27 17:42:10 -0700
commit462785fa257671fe4905d1d3e6ca27e4a61ee946 (patch)
treea917463166e031aaaa7559c95f2911b57477fc3b
parent043a6b1e5709c46cb8094766c792ec57d3fd97df (diff)
downloadframeworks_base-462785fa257671fe4905d1d3e6ca27e4a61ee946.zip
frameworks_base-462785fa257671fe4905d1d3e6ca27e4a61ee946.tar.gz
frameworks_base-462785fa257671fe4905d1d3e6ca27e4a61ee946.tar.bz2
Add a bit more doc to TextureView
Change-Id: Ib76c80d8f70ede1bb63db319bca1e93c489def4d
-rw-r--r--core/java/android/view/TextureView.java9
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)