summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/WebKit/android/nav/WebView.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/WebKit/android/nav/WebView.cpp b/Source/WebKit/android/nav/WebView.cpp
index 215bf43..fc29049 100644
--- a/Source/WebKit/android/nav/WebView.cpp
+++ b/Source/WebKit/android/nav/WebView.cpp
@@ -1057,8 +1057,9 @@ static void nativeOnTrimMemory(JNIEnv *env, jobject obj, jint level)
// Texture to avoid ANR b/c framework may destroy the EGL context.
// Refer to WindowManagerImpl.java for conditions we followed.
TilesManager* tilesManager = TilesManager::instance();
- if (level >= TRIM_MEMORY_MODERATE
- && !tilesManager->highEndGfx()) {
+ if ((level >= TRIM_MEMORY_MODERATE
+ && !tilesManager->highEndGfx())
+ || level >= TRIM_MEMORY_COMPLETE) {
ALOGD("OnTrimMemory with EGL Context %p", eglGetCurrentContext());
tilesManager->transferQueue()->emptyQueue();
tilesManager->shader()->cleanupGLResources();