From 6c12392f17424a773177f4a3045c837529d71b23 Mon Sep 17 00:00:00 2001 From: John Reck Date: Fri, 23 Sep 2016 13:10:01 -0700 Subject: [PATCH] Expose SurfaceTexture(boolean) constructor Fixes: 31709954 Test: 'cts-tradefed run singleCommand cts-dev --module CtsUiRenderingTestCases --test android.uirendering.cts.testclasses.TextureViewTests' passes Change-Id: I358ae97aa90b27ee5757271d83c8a5b96a31a3f0 --- api/current.txt | 1 + api/system-current.txt | 1 + api/test-current.txt | 1 + graphics/java/android/graphics/SurfaceTexture.java | 1 - 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/current.txt b/api/current.txt index 7b8930c0cd8ec..f69237ae24db0 100644 --- a/api/current.txt +++ b/api/current.txt @@ -12692,6 +12692,7 @@ package android.graphics { public class SurfaceTexture { ctor public SurfaceTexture(int); ctor public SurfaceTexture(int, boolean); + ctor public SurfaceTexture(boolean); method public void attachToGLContext(int); method public void detachFromGLContext(); method public long getTimestamp(); diff --git a/api/system-current.txt b/api/system-current.txt index ca1c61d433a14..1699947d44995 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -13140,6 +13140,7 @@ package android.graphics { public class SurfaceTexture { ctor public SurfaceTexture(int); ctor public SurfaceTexture(int, boolean); + ctor public SurfaceTexture(boolean); method public void attachToGLContext(int); method public void detachFromGLContext(); method public long getTimestamp(); diff --git a/api/test-current.txt b/api/test-current.txt index eda4019fe592f..75b916547014b 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -12708,6 +12708,7 @@ package android.graphics { public class SurfaceTexture { ctor public SurfaceTexture(int); ctor public SurfaceTexture(int, boolean); + ctor public SurfaceTexture(boolean); method public void attachToGLContext(int); method public void detachFromGLContext(); method public long getTimestamp(); diff --git a/graphics/java/android/graphics/SurfaceTexture.java b/graphics/java/android/graphics/SurfaceTexture.java index c3861083e2fda..efb46b90e399e 100644 --- a/graphics/java/android/graphics/SurfaceTexture.java +++ b/graphics/java/android/graphics/SurfaceTexture.java @@ -156,7 +156,6 @@ public class SurfaceTexture { * @param singleBufferMode whether the SurfaceTexture will be in single buffered mode. * * @throws Surface.OutOfResourcesException If the SurfaceTexture cannot be created. - * @hide */ public SurfaceTexture(boolean singleBufferMode) { mCreatorLooper = Looper.myLooper();