summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/WebViewClassic.java
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-05-22 14:41:35 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-22 14:41:35 -0700
commit49413bcccbd735be4e8ad4cf98b3ab2f892225e4 (patch)
tree56e7e97f3386a199d6e1f1a7340464f9e5b858a9 /core/java/android/webkit/WebViewClassic.java
parent5ba87a007629375bf0a2e1a45cd1954adef65338 (diff)
parent7a9328a3118725389564fe2a9b926837fa3d58a9 (diff)
am 7a9328a3: Merge "Add temporary functor lifetime logging" into jb-dev
* commit '7a9328a3118725389564fe2a9b926837fa3d58a9': Add temporary functor lifetime logging
Diffstat (limited to 'core/java/android/webkit/WebViewClassic.java')
-rw-r--r--core/java/android/webkit/WebViewClassic.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/core/java/android/webkit/WebViewClassic.java b/core/java/android/webkit/WebViewClassic.java
index b4a312d750ea..ccaceceecc6f 100644
--- a/core/java/android/webkit/WebViewClassic.java
+++ b/core/java/android/webkit/WebViewClassic.java
@@ -2069,6 +2069,11 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
}
private void destroyImpl() {
+ int drawGLFunction = nativeGetDrawGLFunction(mNativeClass);
+ ViewRootImpl viewRoot = mWebView.getViewRootImpl();
+ Log.d(LOGTAG, String.format("destroyImpl, functor %x, viewroot == null %b, isHWAccel %b",
+ drawGLFunction, (viewRoot == null),
+ mWebView.isHardwareAccelerated()));
mCallbackProxy.blockMessages();
clearHelpers();
if (mListBoxDialog != null) {
@@ -5296,9 +5301,12 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
updateHwAccelerated();
+ int drawGLFunction = nativeGetDrawGLFunction(mNativeClass);
+ ViewRootImpl viewRoot = mWebView.getViewRootImpl();
+ Log.d(LOGTAG, String.format("destroyImpl, functor %x, viewroot == null %b, isHWAccel %b",
+ drawGLFunction, (viewRoot == null),
+ mWebView.isHardwareAccelerated()));
if (mWebView.isHardwareAccelerated()) {
- int drawGLFunction = nativeGetDrawGLFunction(mNativeClass);
- ViewRootImpl viewRoot = mWebView.getViewRootImpl();
if (drawGLFunction != 0 && viewRoot != null) {
viewRoot.detachFunctor(drawGLFunction);
}