summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BrowserSettings.java
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2011-07-29 12:34:50 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-07-29 12:34:50 -0700
commit3eee18782bb578265a87b400bcc2341a5777d887 (patch)
tree9a198e034583d8d7ee652917bf6bc10f11cb3d1a /src/com/android/browser/BrowserSettings.java
parent41de3848279b856c181609fb4d7599466e4cd695 (diff)
parent31adf671737521438499be855043296f33e1c3a6 (diff)
downloadpackages_apps_Browser-3eee18782bb578265a87b400bcc2341a5777d887.zip
packages_apps_Browser-3eee18782bb578265a87b400bcc2341a5777d887.tar.gz
packages_apps_Browser-3eee18782bb578265a87b400bcc2341a5777d887.tar.bz2
Merge "Add a runtime switch between Raster and Ganesh rendering modes."
Diffstat (limited to 'src/com/android/browser/BrowserSettings.java')
-rw-r--r--src/com/android/browser/BrowserSettings.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java
index 39abf33..cb86c42 100644
--- a/src/com/android/browser/BrowserSettings.java
+++ b/src/com/android/browser/BrowserSettings.java
@@ -224,6 +224,7 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener,
settings.setJavaScriptEnabled(enableJavascript());
settings.setLightTouchEnabled(enableLightTouch());
settings.setNavDump(enableNavDump());
+ settings.setHardwareAccelSkiaEnabled(isSkiaHardwareAccelerated());
settings.setShowVisualIndicator(enableVisualIndicator());
settings.setDefaultTextEncodingName(getDefaultTextEncoding());
settings.setDefaultZoom(getDefaultZoom());
@@ -629,6 +630,13 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener,
return mPrefs.getBoolean(PREF_ENABLE_HARDWARE_ACCEL, true);
}
+ public boolean isSkiaHardwareAccelerated() {
+ if (!isDebugEnabled()) {
+ return false;
+ }
+ return mPrefs.getBoolean(PREF_ENABLE_HARDWARE_ACCEL_SKIA, false);
+ }
+
public int getUserAgent() {
if (!isDebugEnabled()) {
return 0;