Bug 1155794 - Disable vsync rendering on lollipop devices on B2G v2.2. r=kats, a=bajaj
authorMason Chang <mchang@mozilla.com>
Fri, 17 Apr 2015 11:32:00 -0400
changeset 238217 fe97574cd27d5a4d307035ce66f6778ea8f544a0
parent 238216 367b3e608cd87748c9e375adf7006b4186889b48
child 238218 9ec3043741a741160e523ed818808def24cf3a3b
push id522
push userryanvm@gmail.com
push dateThu, 23 Apr 2015 01:50:17 +0000
treeherdermozilla-b2g37_v2_2@33969ef439f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats, bajaj
bugs1155794
milestone37.0
Bug 1155794 - Disable vsync rendering on lollipop devices on B2G v2.2. r=kats, a=bajaj
b2g/app/b2g.js
--- a/b2g/app/b2g.js
+++ b/b2g/app/b2g.js
@@ -1097,28 +1097,23 @@ pref("dom.mozSettings.SettingsService.ve
 // Controlling whether we want to allow forcing some Settings
 // IndexedDB transactions to be opened as readonly or keep everything as
 // readwrite.
 pref("dom.mozSettings.allowForceReadOnly", false);
 
 // RequestSync API is enabled by default on B2G.
 pref("dom.requestSync.enabled", true);
 
-// Only enable for kit kat and above devices
+// Bug 1147753 - Weird issues with vsync on L devices
+// so disable them on L, but enable on KK and ICS
 // 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
+#if ANDROID_VERSION == 19 || 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