summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-05-14 23:27:47 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-14 23:27:49 +0000
commit0e4a2b5ff0ee061c46bfe3b1f15a7067308e0da8 (patch)
tree4ca4efbe64b2cc5224c37a687f3e6a361883302e /graphics
parente650fd95a9d87f74fb420687b7062c9d428ef3f1 (diff)
parent6d8371e73ff6452be5a23089e7edeb8d6d96f065 (diff)
downloadframeworks_base-0e4a2b5ff0ee061c46bfe3b1f15a7067308e0da8.zip
frameworks_base-0e4a2b5ff0ee061c46bfe3b1f15a7067308e0da8.tar.gz
frameworks_base-0e4a2b5ff0ee061c46bfe3b1f15a7067308e0da8.tar.bz2
Merge "Check for setting to already set" into mnc-dev
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/SurfaceTexture.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/SurfaceTexture.java b/graphics/java/android/graphics/SurfaceTexture.java
index f52c661..5c54324 100644
--- a/graphics/java/android/graphics/SurfaceTexture.java
+++ b/graphics/java/android/graphics/SurfaceTexture.java
@@ -347,6 +347,14 @@ public class SurfaceTexture {
nativeRelease();
}
+ /**
+ * Returns true if the SurfaceTexture was released
+ * @hide
+ */
+ public boolean isReleased() {
+ return nativeIsReleased();
+ }
+
@Override
protected void finalize() throws Throwable {
try {
@@ -383,6 +391,7 @@ public class SurfaceTexture {
private native int nativeAttachToGLContext(int texName);
private native int nativeGetQueuedCount();
private native void nativeRelease();
+ private native boolean nativeIsReleased();
/*
* We use a class initializer to allow the native code to cache some