summaryrefslogtreecommitdiffstats
path: root/res/xml
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-02-16 11:22:21 -0800
committerTeng-Hui Zhu <ztenghui@google.com>2011-02-16 14:35:29 -0800
commit930ea2259874ce44b6d1916061a641340123c4e8 (patch)
tree169ba6e02c23777cd0492871a82de869a3f5c0c0 /res/xml
parent1390d79f846f8a5982542a7dee545d215d22dbeb (diff)
downloadandroid_packages_apps_Gello-930ea2259874ce44b6d1916061a641340123c4e8.tar.gz
android_packages_apps_Gello-930ea2259874ce44b6d1916061a641340123c4e8.tar.bz2
android_packages_apps_Gello-930ea2259874ce44b6d1916061a641340123c4e8.zip
Adding a debug setting to enable visual indicator for GL
[This is the Browser part] The idea is to turn on the visual indicator without building the code. The implementation included: 1. Setup the UI on browser side to check whether or not this is enabled. 2. Transfer the info from browser setting to web setting. 3. Send this info down from WebView to webkit. 4. In the webkit, we save this info in TilesManager. 5. At texture generation time, we query this info to decide whether we add the visual indicator on the texture. One design decision we made is we don't want to restart the browser for debugging purpose. This is better preserving the browser current activity, the only pitfall is that the visual indicator is NOT updated on different textures simultaneously. The webView change this needs is #change,97055 bug:3458721 Change-Id: Ie64be0c1ee372661fd395ce1c3729dd90d622c97
Diffstat (limited to 'res/xml')
-rw-r--r--res/xml/hidden_debug_preferences.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/res/xml/hidden_debug_preferences.xml b/res/xml/hidden_debug_preferences.xml
index 6d66eaa7..661d9de6 100644
--- a/res/xml/hidden_debug_preferences.xml
+++ b/res/xml/hidden_debug_preferences.xml
@@ -20,6 +20,11 @@
<!-- The javascript console is enabled by default when the user has
also enabled debug mode by navigating to about:debug. -->
<CheckBoxPreference
+ android:key="enable_visual_indicator"
+ android:defaultValue="false"
+ android:title="@string/pref_development_visual_indicator" />
+
+ <CheckBoxPreference
android:key="javascript_console"
android:defaultValue="true"
android:title="@string/pref_development_error_console" />