Bug 1126373 - Disable silk on Jelly bean and lower android versions. r=kats

This commit is contained in:
Mason Chang 2015-01-28 10:13:37 -08:00
parent b1680da6e3
commit 1aaf9bcc88

View File

@ -1078,6 +1078,13 @@ pref("dom.mozSettings.allowForceReadOnly", false);
// RequestSync API is enabled by default on B2G.
pref("dom.requestSync.enabled", true);
// Enable hardware vsync compositor
// 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);
#else
pref("gfx.vsync.hw-vsync.enabled", false);
pref("gfx.vsync.compositor", false);
#endif