summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2012-04-16 13:21:53 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-04-16 13:21:53 -0700
commitd1661dcc90cb3efcad75e3fda778f3592bfc5b04 (patch)
treef3fa0a122cc7e4a9e67742c91e7f3c4eafb03f38
parent70544533aec6b318ff1687c9eec0cb9e86ce1b1a (diff)
parent33efb231cb92065c40c019319adae36abc413863 (diff)
downloadframeworks_base-d1661dcc90cb3efcad75e3fda778f3592bfc5b04.zip
frameworks_base-d1661dcc90cb3efcad75e3fda778f3592bfc5b04.tar.gz
frameworks_base-d1661dcc90cb3efcad75e3fda778f3592bfc5b04.tar.bz2
Merge "Unhide new SurfaceTexture & TextureView APIs"
-rw-r--r--api/current.txt3
-rw-r--r--core/java/android/view/TextureView.java1
-rw-r--r--graphics/java/android/graphics/SurfaceTexture.java6
3 files changed, 4 insertions, 6 deletions
diff --git a/api/current.txt b/api/current.txt
index 8ce9d3f..0743ad2 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -9018,6 +9018,8 @@ package android.graphics {
public class SurfaceTexture {
ctor public SurfaceTexture(int);
+ method public void attachToGLContext(int);
+ method public void detachFromGLContext();
method public long getTimestamp();
method public void getTransformMatrix(float[]);
method public void release();
@@ -23305,6 +23307,7 @@ package android.view {
method public android.graphics.Canvas lockCanvas(android.graphics.Rect);
method protected final void onDraw(android.graphics.Canvas);
method public void setOpaque(boolean);
+ method public void setSurfaceTexture(android.graphics.SurfaceTexture);
method public void setSurfaceTextureListener(android.view.TextureView.SurfaceTextureListener);
method public void setTransform(android.graphics.Matrix);
method public void unlockCanvasAndPost(android.graphics.Canvas);
diff --git a/core/java/android/view/TextureView.java b/core/java/android/view/TextureView.java
index 32029ba..214dc5c 100644
--- a/core/java/android/view/TextureView.java
+++ b/core/java/android/view/TextureView.java
@@ -676,7 +676,6 @@ public class TextureView extends View {
*
* @param surfaceTexture The {@link SurfaceTexture} that the view should use.
* @see SurfaceTexture#detachFromGLContext()
- * @hide
*/
public void setSurfaceTexture(SurfaceTexture surfaceTexture) {
if (surfaceTexture == null) {
diff --git a/graphics/java/android/graphics/SurfaceTexture.java b/graphics/java/android/graphics/SurfaceTexture.java
index 3fc20b5..4beaecd 100644
--- a/graphics/java/android/graphics/SurfaceTexture.java
+++ b/graphics/java/android/graphics/SurfaceTexture.java
@@ -159,7 +159,7 @@ public class SurfaceTexture {
* It will implicitly bind its texture to the GL_TEXTURE_EXTERNAL_OES texture target.
*/
public void updateTexImage() {
- nativeUpdateTexImage();
+ nativeUpdateTexImage();
}
/**
@@ -172,8 +172,6 @@ public class SurfaceTexture {
* This can be used to access the SurfaceTexture image contents from multiple OpenGL ES
* contexts. Note, however, that the image contents are only accessible from one OpenGL ES
* context at a time.
- *
- * @hide
*/
public void detachFromGLContext() {
int err = nativeDetachFromGLContext();
@@ -194,8 +192,6 @@ public class SurfaceTexture {
*
* @param texName The name of the OpenGL ES texture that will be created. This texture name
* must be unusued in the OpenGL ES context that is current on the calling thread.
- *
- * @hide
*/
public void attachToGLContext(int texName) {
int err = nativeAttachToGLContext(texName);