summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-08-23 15:26:02 -0700
committerJamie Gennis <jgennis@google.com>2011-08-23 15:59:05 -0700
commit554366d158a0ec330a339f4343fb0a3164257f1e (patch)
treedd0ed4aacbef88e954539bbd208c3c16b646bc0d /graphics
parent7a12d6ba14a35276fd3afb314d6c95055da4c6f0 (diff)
downloadframeworks_base-554366d158a0ec330a339f4343fb0a3164257f1e.zip
frameworks_base-554366d158a0ec330a339f4343fb0a3164257f1e.tar.gz
frameworks_base-554366d158a0ec330a339f4343fb0a3164257f1e.tar.bz2
SurfaceTexture: disable sync-mode SurfaceTextures
This change removes the ability to create a SurfaceTexture that is capable of operating in synchronous-mode from the public APIs. Bug: 5167959 Change-Id: I09995832bb9a5f5063a67ddc3e0e1ab124d4e893
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/SurfaceTexture.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/SurfaceTexture.java b/graphics/java/android/graphics/SurfaceTexture.java
index d62fd67..f3b62ec 100644
--- a/graphics/java/android/graphics/SurfaceTexture.java
+++ b/graphics/java/android/graphics/SurfaceTexture.java
@@ -93,7 +93,7 @@ public class SurfaceTexture {
* @param texName the OpenGL texture object name (e.g. generated via glGenTextures)
*/
public SurfaceTexture(int texName) {
- this(texName, true);
+ this(texName, false);
}
/**
@@ -104,6 +104,8 @@ public class SurfaceTexture {
* 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;