Bug 1147753. Disable vsync refresh driver on L devices. r=kats
authorMason Chang <mchang@mozilla.com>
Thu, 26 Mar 2015 13:48:47 -0700
changeset 266166 0cd8d473d59791f389bd1a2e64493e8714092261
parent 266165 3f22bef9089da55a70b241a0462b0c5cce5b0aed
child 266167 47c1e9a82e01b849845608d10ab4dfc8da9274c0
child 266209 7f7b13bc036a87d0910617d45b97e5e1fde7ad07
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1147753
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1147753. Disable vsync refresh driver on L devices. r=kats
b2g/app/b2g.js
--- a/b2g/app/b2g.js
+++ b/b2g/app/b2g.js
@@ -1126,15 +1126,21 @@ pref("dom.requestSync.enabled", true);
 
 // Only enable for kit kat and above devices
 // kit kat == 19, L = 21, 20 is kit-kat for wearables
 // 15 is for the ICS emulators which will fallback to software vsync
 #if ANDROID_VERSION == 19 || ANDROID_VERSION == 21 || ANDROID_VERSION == 15
 pref("gfx.vsync.hw-vsync.enabled", true);
 pref("gfx.vsync.compositor", true);
 pref("gfx.touch.resample", true);
-pref("gfx.vsync.refreshdriver", true);
 #else
 pref("gfx.vsync.hw-vsync.enabled", false);
 pref("gfx.vsync.compositor", false);
 pref("gfx.touch.resample", false);
+#endif
+
+// Bug 1147753 - Weird issues with vsync refresh driver on L devices
+// so disable them on L, but enable on KK and ICS
+#if ANDROID_VERSION == 19 || ANDROID_VERSION == 15
+pref("gfx.vsync.refreshdriver", true);
+#else
 pref("gfx.vsync.refreshdriver", false);
 #endif