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:
Bo Liu
2016-04-20 09:03:53 -07:00
parent e6be9c58cc
commit 439266bbb5

View File

@@ -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;
}
/**