@@ -2018,11 +2018,6 @@ public void destroy() {
20182018 }
20192019
20202020 private void destroyImpl () {
2021- int drawGLFunction = nativeGetDrawGLFunction (mNativeClass );
2022- ViewRootImpl viewRoot = mWebView .getViewRootImpl ();
2023- Log .d (LOGTAG , String .format ("destroyImpl, drawGLFunction %x, viewroot == null %b, isHWAccel %b" ,
2024- drawGLFunction , (viewRoot == null ), mWebView .isHardwareAccelerated ()));
2025-
20262021 mCallbackProxy .blockMessages ();
20272022 clearHelpers ();
20282023 if (mListBoxDialog != null ) {
@@ -5439,11 +5434,9 @@ public void onDetachedFromWindow() {
54395434 removeAccessibilityApisFromJavaScript ();
54405435 updateHwAccelerated ();
54415436
5442- int drawGLFunction = nativeGetDrawGLFunction (mNativeClass );
5443- ViewRootImpl viewRoot = mWebView .getViewRootImpl ();
5444- Log .d (LOGTAG , String .format ("onDetachedFromWindow, drawGLFunction %x, viewroot == null %b, isHWAccel %b" ,
5445- drawGLFunction , (viewRoot == null ), mWebView .isHardwareAccelerated ()));
54465437 if (mWebView .isHardwareAccelerated ()) {
5438+ int drawGLFunction = nativeGetDrawGLFunction (mNativeClass );
5439+ ViewRootImpl viewRoot = mWebView .getViewRootImpl ();
54475440 if (drawGLFunction != 0 && viewRoot != null ) {
54485441 viewRoot .detachFunctor (drawGLFunction );
54495442 }
0 commit comments