From 554366d158a0ec330a339f4343fb0a3164257f1e Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Tue, 23 Aug 2011 15:26:02 -0700 Subject: 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 --- graphics/java/android/graphics/SurfaceTexture.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'graphics') 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; -- cgit v1.1