diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-11-15 18:59:59 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-11-16 14:04:53 -0800 |
commit | 717a25dc2a411edb548859cd6870363346c71b01 (patch) | |
tree | 69bbc13b92fbef8dd34df6473897d812cea0b4eb /api/current.txt | |
parent | 4c6a65bc319feab120d40553d93b160908db2f6d (diff) | |
download | frameworks_base-717a25dc2a411edb548859cd6870363346c71b01.zip frameworks_base-717a25dc2a411edb548859cd6870363346c71b01.tar.gz frameworks_base-717a25dc2a411edb548859cd6870363346c71b01.tar.bz2 |
Add new ManagedEGLContext class to help apps participate in memory trimming.
This class provides an API for an application to know when it is time to
destroy its EGL context when memory is being trimmed. By having this in
the framework, we can still detect whether it will be useful to destroy
any EGL contexts (because we know if doing so will destroy all of them).
Change-Id: I1eac8d640052778052926b875c7928008f752182
Diffstat (limited to 'api/current.txt')
-rw-r--r-- | api/current.txt | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/api/current.txt b/api/current.txt index f33c6cb..cbb8b44 100644 --- a/api/current.txt +++ b/api/current.txt @@ -14237,6 +14237,13 @@ package android.opengl { method public static void texSubImage2D(int, int, int, int, android.graphics.Bitmap, int, int); } + public abstract class ManagedEGLContext { + ctor public ManagedEGLContext(javax.microedition.khronos.egl.EGLContext); + method public javax.microedition.khronos.egl.EGLContext getContext(); + method public abstract void onTerminate(javax.microedition.khronos.egl.EGLContext); + method public void terminate(); + } + public class Matrix { ctor public Matrix(); method public static void frustumM(float[], int, float, float, float, float, float, float); @@ -18419,14 +18426,14 @@ package android.renderscript { ctor public RSSurfaceView(android.content.Context); ctor public RSSurfaceView(android.content.Context, android.util.AttributeSet); method public android.renderscript.RenderScriptGL createRenderScriptGL(android.renderscript.RenderScriptGL.SurfaceConfig); - method public void destroyRenderScriptGL(); + method public synchronized void destroyRenderScriptGL(); method public android.renderscript.RenderScriptGL getRenderScriptGL(); method public void pause(); method public void resume(); method public void setRenderScriptGL(android.renderscript.RenderScriptGL); - method public void surfaceChanged(android.view.SurfaceHolder, int, int, int); + method public synchronized void surfaceChanged(android.view.SurfaceHolder, int, int, int); method public void surfaceCreated(android.view.SurfaceHolder); - method public void surfaceDestroyed(android.view.SurfaceHolder); + method public synchronized void surfaceDestroyed(android.view.SurfaceHolder); } public class RSTextureView extends android.view.TextureView implements android.view.TextureView.SurfaceTextureListener { |