summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorBo Liu <boliu@google.com>2016-04-20 09:03:53 -0700
committerBo Liu <boliu@google.com>2016-04-20 09:03:53 -0700
commit439266bbb533865405d5286fd944d79f7d49df0e (patch)
tree6b8be1bb214c8c91218d885e2e23952e82e89591 /core/java/android
parente6be9c58cca6a523960553faf164398b0297089c (diff)
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
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/webkit/WebViewDelegate.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/java/android/webkit/WebViewDelegate.java b/core/java/android/webkit/WebViewDelegate.java
index 2b548750246d..85d7cd0ced60 100644
--- a/core/java/android/webkit/WebViewDelegate.java
+++ b/core/java/android/webkit/WebViewDelegate.java
@@ -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;
}
/**