Bug 944938 - Add default values for some AsyncPanZoom prefs to all.js. r=kats
authorMarkus Stange <mstange@themasta.com>
Tue, 03 Jun 2014 15:39:50 +0200
changeset 186772 75ab95a6f890669786264ed22b251315b147c86c
parent 186771 ca77e129db835f880c9ffd074d056c812a3b10a8
child 186773 6809ce23f0fe537a5aabb90d01e19e9e4e05f34f
push id7703
push userkwierso@gmail.com
push dateFri, 06 Jun 2014 02:16:23 +0000
treeherderb2g-inbound@b7d259bda94a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs944938
milestone32.0a1
Bug 944938 - Add default values for some AsyncPanZoom prefs to all.js. r=kats
modules/libpref/src/init/all.js
--- a/modules/libpref/src/init/all.js
+++ b/modules/libpref/src/init/all.js
@@ -354,27 +354,38 @@ pref("media.autoplay.enabled", true);
 pref("media.video-queue.default-size", 10);
 
 // Whether to disable the video stats to prevent fingerprinting
 pref("media.video_stats.enabled", true);
 
 // Whether to enable the audio writing APIs on the audio element
 pref("media.audio_data.enabled", false);
 
+// Whether to use async panning and zooming
+pref("layers.async-pan-zoom.enabled", false);
+
 // Whether to lock touch scrolling to one axis at a time
 // 0 = FREE (No locking at all)
 // 1 = STANDARD (Once locked, remain locked until scrolling ends)
 // 2 = STICKY (Allow lock to be broken, with hysteresis)
 pref("apz.axis_lock_mode", 0);
 
 // Whether to print the APZC tree for debugging
 pref("apz.printtree", false);
 
+#ifdef XP_MACOSX
 // Layerize scrollable subframes to allow async panning
+pref("apz.subframe.enabled", true);
+pref("apz.fling_repaint_interval", 16);
+pref("apz.pan_repaint_interval", 16);
+pref("apz.apz.x_skate_size_multiplier", "2.5");
+pref("apz.apz.y_skate_size_multiplier", "3.5");
+#else
 pref("apz.subframe.enabled", false);
+#endif
 
 // APZ testing (bug 961289)
 pref("apz.test.logging_enabled", false);
 
 #ifdef XP_MACOSX
 // Whether to run in native HiDPI mode on machines with "Retina"/HiDPI display;
 //   <= 0 : hidpi mode disabled, display will just use pixel-based upscaling
 //   == 1 : hidpi supported if all screens share the same backingScaleFactor