# HG changeset patch
# Parent cef2b76b082d36c329e94dfded65ead78ce026f2
Bug 1077651. Part 1: Add mochitest to test frame uniformity. r=kats
diff --git a/gfx/layers/apz/test/chrome.ini b/gfx/layers/apz/test/chrome.ini
new file mode 100644
--- /dev/null
+++ b/gfx/layers/apz/test/chrome.ini
@@ -0,0 +1,9 @@
+[DEFAULT]
+support-files =
+ apz_test_utils.js
+ apz_test_native_event_utils.js
+ helper_bug982141.html
+ helper_bug1151663.html
+tags = apz-chrome
+
+[test_smoothness.html]
diff --git a/gfx/layers/apz/test/test_smoothness.html b/gfx/layers/apz/test/test_smoothness.html
new file mode 100644
--- /dev/null
+++ b/gfx/layers/apz/test/test_smoothness.html
@@ -0,0 +1,64 @@
+
+
+ Test Frame Uniformity While Scrolling
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/gfx/thebes/gfxPrefs.h b/gfx/thebes/gfxPrefs.h
--- a/gfx/thebes/gfxPrefs.h
+++ b/gfx/thebes/gfxPrefs.h
@@ -228,16 +228,17 @@ private:
DECL_GFX_PREF(Live, "gfx.perf-warnings.enabled", PerfWarnings, bool, false);
DECL_GFX_PREF(Once, "gfx.touch.resample", TouchResampling, bool, false);
// These times should be in milliseconds
DECL_GFX_PREF(Once, "gfx.touch.resample.delay-threshold", TouchResampleVsyncDelayThreshold, int32_t, 20);
DECL_GFX_PREF(Once, "gfx.touch.resample.max-predict", TouchResampleMaxPredict, int32_t, 8);
DECL_GFX_PREF(Once, "gfx.touch.resample.old-touch-threshold",TouchResampleOldTouchThreshold, int32_t, 17);
DECL_GFX_PREF(Once, "gfx.touch.resample.vsync-adjust", TouchVsyncSampleAdjust, int32_t, 5);
+ DECL_GFX_PREF(Live, "gfx.vsync.collect-scroll-data", CollectScrollData, bool, false);
DECL_GFX_PREF(Once, "gfx.vsync.compositor", VsyncAlignedCompositor, bool, false);
// On b2g, in really bad cases, I've seen up to 80 ms delays between touch events and the main thread
// processing them. So 80 ms / 16 = 5 vsync events. Double it up just to be on the safe side, so 10.
DECL_GFX_PREF(Once, "gfx.vsync.compositor.unobserve-count", CompositorUnobserveCount, int32_t, 10);
// Use vsync events generated by hardware
DECL_GFX_PREF(Once, "gfx.vsync.hw-vsync.enabled", HardwareVsyncEnabled, bool, false);
DECL_GFX_PREF(Once, "gfx.vsync.refreshdriver", VsyncAlignedRefreshDriver, bool, false);