webview: canInvokeDrawGlFunctor should always return true
Now that invokeDrawGlFunctor doesn't use the View anymore, and just calls a static method on ViewRootImpl. In particular this is required since invokeDrwaGlFunctor need to still function for views that already detached. BUG: 27709981 Change-Id: I2c8c8f4a6943f7eec773265ca709349c5ce0be54
This commit is contained in:
@@ -74,9 +74,7 @@ public final class WebViewDelegate {
|
||||
* and false otherwise.
|
||||
*/
|
||||
public boolean canInvokeDrawGlFunctor(View containerView) {
|
||||
ViewRootImpl viewRootImpl = containerView.getViewRootImpl();
|
||||
// viewRootImpl can be null during teardown when window is leaked.
|
||||
return viewRootImpl != null;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user