Make sure WebView get notified before the EGL context destroyed.

bug:5639899

Change-Id: Id778cf3dac1d2f6d6b8014b7a911b51dc14fcc8a
This commit is contained in:
Teng-Hui Zhu
2012-01-25 13:46:16 -08:00
parent 30f1312b3c
commit a34eb91a20

View File

@@ -3741,7 +3741,6 @@ public final class ActivityThread {
}
final void handleTrimMemory(int level) {
WindowManagerImpl.getDefault().trimMemory(level);
ArrayList<ComponentCallbacks2> callbacks;
synchronized (mPackages) {
@@ -3752,6 +3751,7 @@ public final class ActivityThread {
for (int i=0; i<N; i++) {
callbacks.get(i).onTrimMemory(level);
}
WindowManagerImpl.getDefault().trimMemory(level);
}
private void setupGraphicsSupport(LoadedApk info) {