summaryrefslogtreecommitdiffstats
path: root/WebKit/android/nav/WebView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/nav/WebView.cpp')
-rw-r--r--WebKit/android/nav/WebView.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp
index 4a80210..193a86e 100644
--- a/WebKit/android/nav/WebView.cpp
+++ b/WebKit/android/nav/WebView.cpp
@@ -2042,6 +2042,17 @@ static void nativeDumpDisplayTree(JNIEnv* env, jobject jwebview, jstring jurl)
fwrite("\n", 1, 1, file);
fclose(file);
}
+#if USE(ACCELERATED_COMPOSITING)
+ int pRootLayer = view->getWebViewCore()->rootLayer();
+ if (pRootLayer) {
+ LayerAndroid* rootLayer = reinterpret_cast<LayerAndroid*>(pRootLayer);
+ FILE* file = fopen(LAYERS_TREE_LOG_FILE,"w");
+ if (file) {
+ rootLayer->dumpLayers(file, 0);
+ fclose(file);
+ }
+ }
+#endif
}
#endif
}