@@ -2017,6 +2017,11 @@ public void destroy() {
20172017 }
20182018
20192019 private void destroyImpl () {
2020+ int drawGLFunction = nativeGetDrawGLFunction (mNativeClass );
2021+ ViewRootImpl viewRoot = mWebView .getViewRootImpl ();
2022+ Log .d (LOGTAG , String .format ("destroyImpl, drawGLFunction %x, viewroot == null %b, isHWAccel %b" ,
2023+ drawGLFunction , (viewRoot == null ), mWebView .isHardwareAccelerated ()));
2024+
20202025 mCallbackProxy .blockMessages ();
20212026 clearHelpers ();
20222027 if (mListBoxDialog != null ) {
@@ -5429,9 +5434,11 @@ public void onDetachedFromWindow() {
54295434 removeAccessibilityApisFromJavaScript ();
54305435 updateHwAccelerated ();
54315436
5437+ int drawGLFunction = nativeGetDrawGLFunction (mNativeClass );
5438+ ViewRootImpl viewRoot = mWebView .getViewRootImpl ();
5439+ Log .d (LOGTAG , String .format ("onDetachedFromWindow, drawGLFunction %x, viewroot == null %b, isHWAccel %b" ,
5440+ drawGLFunction , (viewRoot == null ), mWebView .isHardwareAccelerated ()));
54325441 if (mWebView .isHardwareAccelerated ()) {
5433- int drawGLFunction = nativeGetDrawGLFunction (mNativeClass );
5434- ViewRootImpl viewRoot = mWebView .getViewRootImpl ();
54355442 if (drawGLFunction != 0 && viewRoot != null ) {
54365443 viewRoot .detachFunctor (drawGLFunction );
54375444 }
0 commit comments