summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BrowserSettings.java
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-09-22 15:34:29 -0700
committerTeng-Hui Zhu <ztenghui@google.com>2011-09-23 14:26:00 -0700
commit85de57ad68c831729ebc46b87548ddb1e92ab6a5 (patch)
tree179e0a0cf8394f23471ec5978f90653d274cf84f /src/com/android/browser/BrowserSettings.java
parent4bc6db35eafbb6f961c6bb08639c0dc211b6419c (diff)
downloadpackages_apps_Browser-85de57ad68c831729ebc46b87548ddb1e92ab6a5.zip
packages_apps_Browser-85de57ad68c831729ebc46b87548ddb1e92ab6a5.tar.gz
packages_apps_Browser-85de57ad68c831729ebc46b87548ddb1e92ab6a5.tar.bz2
UI for switching texture upload mode
For browser, default will be CPU upload until bug 5334978 fix. bug:5347539 The webkit part is in https://android-git.corp.google.com/g/#/c/137610/ Change-Id: Iec3a100dc142b28e54145f08a5c76210f8634cba
Diffstat (limited to 'src/com/android/browser/BrowserSettings.java')
-rw-r--r--src/com/android/browser/BrowserSettings.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java
index cfaa18a..2c0b2ec 100644
--- a/src/com/android/browser/BrowserSettings.java
+++ b/src/com/android/browser/BrowserSettings.java
@@ -268,6 +268,9 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener,
settings.setProperty(WebViewProperties.gfxInvertedScreenContrast,
Float.toString(getInvertedContrast()));
+
+ settings.setProperty(WebViewProperties.gfxEnableCpuUploadPath,
+ enableCpuUploadPath() ? "true" : "false");
}
/**
@@ -672,6 +675,13 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener,
return mPrefs.getBoolean(PREF_ENABLE_VISUAL_INDICATOR, false);
}
+ public boolean enableCpuUploadPath() {
+ if (!isDebugEnabled()) {
+ return true;
+ }
+ return mPrefs.getBoolean(PREF_ENABLE_CPU_UPLOAD_PATH, true);
+ }
+
public boolean enableJavascriptConsole() {
if (!isDebugEnabled()) {
return false;