OSDN Git Service

Add new ManagedEGLContext class to help apps participate in memory trimming.
authorDianne Hackborn <hackbod@google.com>
Wed, 16 Nov 2011 02:59:59 +0000 (18:59 -0800)
committerDianne Hackborn <hackbod@google.com>
Wed, 16 Nov 2011 22:04:53 +0000 (14:04 -0800)
commit717a25dc2a411edb548859cd6870363346c71b01
tree69bbc13b92fbef8dd34df6473897d812cea0b4eb
parent4c6a65bc319feab120d40553d93b160908db2f6d
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
api/current.txt
core/java/android/view/HardwareRenderer.java
core/java/android/view/WindowManagerImpl.java
opengl/java/android/opengl/ManagedEGLContext.java [new file with mode: 0644]