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

Commit 75f2bc04 authored by Jack Palevich's avatar Jack Palevich
Browse files

Unhide GLSurfaceView.get/setPreserveEGLContextOnPause

Change-Id: I882b8fa7888e2baae41c81b75af7fc1f639d38d6
parent 1418de7e
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -136088,6 +136088,17 @@
 visibility="public"
>
</method>
<method name="getPreserveEGLContextOnPause"
 return="boolean"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getRenderMode"
 return="int"
 abstract="false"
@@ -136259,6 +136270,19 @@
<parameter name="glWrapper" type="android.opengl.GLSurfaceView.GLWrapper">
</parameter>
</method>
<method name="setPreserveEGLContextOnPause"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="preserveOnPause" type="boolean">
</parameter>
</method>
<method name="setRenderMode"
 return="void"
 abstract="false"
+0 −2
Original line number Diff line number Diff line
@@ -272,7 +272,6 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback
    }

    /**
     * @hide
     * Control whether the EGL context is preserved when the GLSurfaceView is paused and
     * resumed.
     * <p>
@@ -295,7 +294,6 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback
    }

    /**
     * @hide
     * @return true if the EGL context will be preserved when paused
     */
    public boolean getPreserveEGLContextOnPause() {