summaryrefslogtreecommitdiffstats
path: root/graphics/java/android
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-05-14 15:47:03 -0700
committerJohn Reck <jreck@google.com>2015-05-14 16:06:12 -0700
commit6d8371e73ff6452be5a23089e7edeb8d6d96f065 (patch)
tree7dad88f89ada8fcc80966eb2004753f2e94d6bfd /graphics/java/android
parent6e1c17a3dfd62f3ae2a16ac64b8575fc3aa4a7a2 (diff)
downloadframeworks_base-6d8371e73ff6452be5a23089e7edeb8d6d96f065.zip
frameworks_base-6d8371e73ff6452be5a23089e7edeb8d6d96f065.tar.gz
frameworks_base-6d8371e73ff6452be5a23089e7edeb8d6d96f065.tar.bz2
Check for setting to already set
Bug: 20105644 Change-Id: Ia79d2ae5c725c139d2b7c423a899be625cb8f14f
Diffstat (limited to 'graphics/java/android')
-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