Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0db3aef9 authored by Jamie Gennis's avatar Jamie Gennis
Browse files

Surface: unhide the SurfaceTexture ctor

This change unhides the Surface constructor that creates a Surface that
pushes frames to a SurfaceTexture.

Change-Id: I2e587afc52c9838d25b8681cae7421734b3e7b6e
parent a258f0c8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -22508,6 +22508,7 @@ package android.view {
  }
  public class Surface implements android.os.Parcelable {
    ctor public Surface(android.graphics.SurfaceTexture);
    method public int describeContents();
    method public boolean isValid();
    method public android.graphics.Canvas lockCanvas(android.graphics.Rect) throws java.lang.IllegalArgumentException, android.view.Surface.OutOfResourcesException;
+7 −3
Original line number Diff line number Diff line
@@ -36,10 +36,14 @@ public class Surface implements Parcelable {
    public static final int ROTATION_270     = 3;

    /**
     * Create Surface from a SurfaceTexture.
     * Create Surface from a {@link SurfaceTexture}.
     *
     * @param surfaceTexture The {@link SurfaceTexture} that is updated by this Surface.
     * @hide
     * Images drawn to the Surface will be made available to the {@link
     * SurfaceTexture}, which can attach them an OpenGL ES texture via {@link
     * SurfaceTexture#updateTexImage}.
     *
     * @param surfaceTexture The {@link SurfaceTexture} that is updated by this
     * Surface.
     */
    public Surface(SurfaceTexture surfaceTexture) {
        if (DEBUG_RELEASE) {