@@ -2000,11 +2000,6 @@ public void destroy() {
20002000 }
20012001
20022002 private void destroyImpl () {
2003- int drawGLFunction = nativeGetDrawGLFunction (mNativeClass );
2004- ViewRootImpl viewRoot = mWebView .getViewRootImpl ();
2005- Log .d (LOGTAG , String .format ("destroyImpl, drawGLFunction %x, viewroot == null %b, isHWAccel %b" ,
2006- drawGLFunction , (viewRoot == null ), mWebView .isHardwareAccelerated ()));
2007-
20082003 mCallbackProxy .blockMessages ();
20092004 clearHelpers ();
20102005 if (mListBoxDialog != null ) {
@@ -5392,11 +5387,9 @@ public void onDetachedFromWindow() {
53925387 removeAccessibilityApisFromJavaScript ();
53935388 updateHwAccelerated ();
53945389
5395- int drawGLFunction = nativeGetDrawGLFunction (mNativeClass );
5396- ViewRootImpl viewRoot = mWebView .getViewRootImpl ();
5397- Log .d (LOGTAG , String .format ("onDetachedFromWindow, drawGLFunction %x, viewroot == null %b, isHWAccel %b" ,
5398- drawGLFunction , (viewRoot == null ), mWebView .isHardwareAccelerated ()));
53995390 if (mWebView .isHardwareAccelerated ()) {
5391+ int drawGLFunction = nativeGetDrawGLFunction (mNativeClass );
5392+ ViewRootImpl viewRoot = mWebView .getViewRootImpl ();
54005393 if (drawGLFunction != 0 && viewRoot != null ) {
54015394 viewRoot .detachFunctor (drawGLFunction );
54025395 }
0 commit comments