Unhide new SurfaceTexture & TextureView APIs
This change unhides the new SurfaceTexture and TextureView APIs that were added to allow transferring ownership of the SurfaceTexture from the UI framework to the application. Change-Id: Ic4b781d907a59e99ff1a5974009305c1f9aee36a
This commit is contained in:
@@ -9003,6 +9003,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();
|
||||
@@ -23289,6 +23291,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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user