summaryrefslogtreecommitdiffstats
path: root/graphics/java
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-07-16 22:54:56 -0700
committerMathias Agopian <mathias@google.com>2013-07-16 23:14:24 -0700
commite32632682ca9207bd247ca27012cf670b5c23f54 (patch)
tree0026abe147d61ef6d42d476606ea5712f0f35cd4 /graphics/java
parent5ab422bfa34f0fd64b6bef25287e7250f80de4ba (diff)
downloadframeworks_base-e32632682ca9207bd247ca27012cf670b5c23f54.zip
frameworks_base-e32632682ca9207bd247ca27012cf670b5c23f54.tar.gz
frameworks_base-e32632682ca9207bd247ca27012cf670b5c23f54.tar.bz2
update to new Consumer APIs
Change-Id: I8649f3add40e0aeeeb0396b98e2cb93312e8e990
Diffstat (limited to 'graphics/java')
-rw-r--r--graphics/java/android/graphics/SurfaceTexture.java19
1 files changed, 2 insertions, 17 deletions
diff --git a/graphics/java/android/graphics/SurfaceTexture.java b/graphics/java/android/graphics/SurfaceTexture.java
index af1a447..aaed094 100644
--- a/graphics/java/android/graphics/SurfaceTexture.java
+++ b/graphics/java/android/graphics/SurfaceTexture.java
@@ -95,21 +95,6 @@ public class SurfaceTexture {
* @param texName the OpenGL texture object name (e.g. generated via glGenTextures)
*/
public SurfaceTexture(int texName) {
- this(texName, false);
- }
-
- /**
- * Construct a new SurfaceTexture to stream images to a given OpenGL texture.
- *
- * @param texName the OpenGL texture object name (e.g. generated via glGenTextures)
- * @param allowSynchronousMode whether the SurfaceTexture can run in the synchronous mode.
- * When the image stream comes from OpenGL, SurfaceTexture may run in the synchronous
- * mode where the producer side may be blocked to avoid skipping frames. To avoid the
- * thread block, set allowSynchronousMode to false.
- *
- * @hide
- */
- public SurfaceTexture(int texName, boolean allowSynchronousMode) {
Looper looper;
if ((looper = Looper.myLooper()) != null) {
mEventHandler = new EventHandler(looper);
@@ -118,7 +103,7 @@ public class SurfaceTexture {
} else {
mEventHandler = null;
}
- nativeInit(texName, new WeakReference<SurfaceTexture>(this), allowSynchronousMode);
+ nativeInit(texName, new WeakReference<SurfaceTexture>(this));
}
/**
@@ -299,7 +284,7 @@ public class SurfaceTexture {
}
}
- private native void nativeInit(int texName, Object weakSelf, boolean allowSynchronousMode);
+ private native void nativeInit(int texName, Object weakSelf);
private native void nativeFinalize();
private native void nativeGetTransformMatrix(float[] mtx);
private native long nativeGetTimestamp();