Loading core/java/android/webkit/HTML5VideoInline.java +5 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,11 @@ public class HTML5VideoInline extends HTML5VideoView{ @Override public void deleteSurfaceTexture() { cleanupSurfaceTexture(); return; } public static void cleanupSurfaceTexture() { mSurfaceTexture = null; mVideoLayerUsingSurfaceTexture = -1; return; Loading core/java/android/webkit/WebView.java +6 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,7 @@ import android.view.inputmethod.BaseInputConnection; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.InputConnection; import android.view.inputmethod.InputMethodManager; import android.webkit.HTML5VideoInline; import android.webkit.WebTextView.AutoCompleteAdapter; import android.webkit.WebViewCore.DrawData; import android.webkit.WebViewCore.EventHub; Loading Loading @@ -842,6 +843,11 @@ public class WebView extends AbsoluteLayout if (DebugFlags.WEB_VIEW) { Log.d("WebView", "onTrimMemory: " + level); } // When framework reset EGL context during high memory pressure, all // the existing GL resources for the html5 video will be destroyed // at native side. // Here we just need to clean up the Surface Texture which is static. HTML5VideoInline.cleanupSurfaceTexture(); WebView.nativeOnTrimMemory(level); } Loading Loading
core/java/android/webkit/HTML5VideoInline.java +5 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,11 @@ public class HTML5VideoInline extends HTML5VideoView{ @Override public void deleteSurfaceTexture() { cleanupSurfaceTexture(); return; } public static void cleanupSurfaceTexture() { mSurfaceTexture = null; mVideoLayerUsingSurfaceTexture = -1; return; Loading
core/java/android/webkit/WebView.java +6 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,7 @@ import android.view.inputmethod.BaseInputConnection; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.InputConnection; import android.view.inputmethod.InputMethodManager; import android.webkit.HTML5VideoInline; import android.webkit.WebTextView.AutoCompleteAdapter; import android.webkit.WebViewCore.DrawData; import android.webkit.WebViewCore.EventHub; Loading Loading @@ -842,6 +843,11 @@ public class WebView extends AbsoluteLayout if (DebugFlags.WEB_VIEW) { Log.d("WebView", "onTrimMemory: " + level); } // When framework reset EGL context during high memory pressure, all // the existing GL resources for the html5 video will be destroyed // at native side. // Here we just need to clean up the Surface Texture which is static. HTML5VideoInline.cleanupSurfaceTexture(); WebView.nativeOnTrimMemory(level); } Loading