Skip to content

Commit d1661dc

Browse files
Jamie GennisAndroid (Google) Code Review
authored andcommitted
Merge "Unhide new SurfaceTexture & TextureView APIs"
2 parents 7054453 + 33efb23 commit d1661dc

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

api/current.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9018,6 +9018,8 @@ package android.graphics {
90189018

90199019
public class SurfaceTexture {
90209020
ctor public SurfaceTexture(int);
9021+
method public void attachToGLContext(int);
9022+
method public void detachFromGLContext();
90219023
method public long getTimestamp();
90229024
method public void getTransformMatrix(float[]);
90239025
method public void release();
@@ -23305,6 +23307,7 @@ package android.view {
2330523307
method public android.graphics.Canvas lockCanvas(android.graphics.Rect);
2330623308
method protected final void onDraw(android.graphics.Canvas);
2330723309
method public void setOpaque(boolean);
23310+
method public void setSurfaceTexture(android.graphics.SurfaceTexture);
2330823311
method public void setSurfaceTextureListener(android.view.TextureView.SurfaceTextureListener);
2330923312
method public void setTransform(android.graphics.Matrix);
2331023313
method public void unlockCanvasAndPost(android.graphics.Canvas);

core/java/android/view/TextureView.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,6 @@ public SurfaceTexture getSurfaceTexture() {
676676
*
677677
* @param surfaceTexture The {@link SurfaceTexture} that the view should use.
678678
* @see SurfaceTexture#detachFromGLContext()
679-
* @hide
680679
*/
681680
public void setSurfaceTexture(SurfaceTexture surfaceTexture) {
682681
if (surfaceTexture == null) {

graphics/java/android/graphics/SurfaceTexture.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public void setDefaultBufferSize(int width, int height) {
159159
* It will implicitly bind its texture to the GL_TEXTURE_EXTERNAL_OES texture target.
160160
*/
161161
public void updateTexImage() {
162-
nativeUpdateTexImage();
162+
nativeUpdateTexImage();
163163
}
164164

165165
/**
@@ -172,8 +172,6 @@ public void updateTexImage() {
172172
* This can be used to access the SurfaceTexture image contents from multiple OpenGL ES
173173
* contexts. Note, however, that the image contents are only accessible from one OpenGL ES
174174
* context at a time.
175-
*
176-
* @hide
177175
*/
178176
public void detachFromGLContext() {
179177
int err = nativeDetachFromGLContext();
@@ -194,8 +192,6 @@ public void detachFromGLContext() {
194192
*
195193
* @param texName The name of the OpenGL ES texture that will be created. This texture name
196194
* must be unusued in the OpenGL ES context that is current on the calling thread.
197-
*
198-
* @hide
199195
*/
200196
public void attachToGLContext(int texName) {
201197
int err = nativeAttachToGLContext(texName);

0 commit comments

Comments
 (0)