diff options
author | Derek Sollenberger <djsollen@google.com> | 2011-07-29 12:34:50 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-29 12:34:50 -0700 |
commit | 3eee18782bb578265a87b400bcc2341a5777d887 (patch) | |
tree | 9a198e034583d8d7ee652917bf6bc10f11cb3d1a /src/com/android/browser/BrowserSettings.java | |
parent | 41de3848279b856c181609fb4d7599466e4cd695 (diff) | |
parent | 31adf671737521438499be855043296f33e1c3a6 (diff) | |
download | packages_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.java | 8 |
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; |