Bug 749429 - Increase displayport size multiplier default to 2000 for fixed-margin and velocity-bias. r=Cwiiis a=jpr
authorKartikaya Gupta <kgupta@mozilla.com>
Sat, 28 Apr 2012 01:02:19 -0400
changeset 94073 620975d07853d4eace9118fb683bc5e8f4a454c1
parent 94072 f4ad941dacd578ea16f4972d539a92c98b5297e3
child 94074 da65f130ceb218ec49b813c739313a6334b53cb1
push id1160
push usermfinkle@mozilla.com
push dateSun, 29 Apr 2012 14:11:21 +0000
treeherdermozilla-aurora@620975d07853 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersCwiiis, jpr
bugs749429
milestone14.0a2
Bug 749429 - Increase displayport size multiplier default to 2000 for fixed-margin and velocity-bias. r=Cwiiis a=jpr
mobile/android/base/gfx/DisplayPortCalculator.java
--- a/mobile/android/base/gfx/DisplayPortCalculator.java
+++ b/mobile/android/base/gfx/DisplayPortCalculator.java
@@ -262,17 +262,17 @@ final class DisplayPortCalculator {
         private final float SIZE_MULTIPLIER;
 
         // If the visible rect is within the danger zone (measured as a fraction of the view size
         // from the edge of the displayport) we start redrawing to minimize checkerboarding.
         private final float DANGER_ZONE_X_MULTIPLIER;
         private final float DANGER_ZONE_Y_MULTIPLIER;
 
         FixedMarginStrategy(Map<String, Integer> prefs) {
-            SIZE_MULTIPLIER = getFloatPref(prefs, PREF_DISPLAYPORT_FM_MULTIPLIER, 1500);
+            SIZE_MULTIPLIER = getFloatPref(prefs, PREF_DISPLAYPORT_FM_MULTIPLIER, 2000);
             DANGER_ZONE_X_MULTIPLIER = getFloatPref(prefs, PREF_DISPLAYPORT_FM_DANGER_X, 100);
             DANGER_ZONE_Y_MULTIPLIER = getFloatPref(prefs, PREF_DISPLAYPORT_FM_DANGER_Y, 200);
         }
 
         public DisplayPortMetrics calculate(ImmutableViewportMetrics metrics, PointF velocity) {
             float displayPortWidth = metrics.getWidth() * SIZE_MULTIPLIER;
             float displayPortHeight = metrics.getHeight() * SIZE_MULTIPLIER;
 
@@ -335,17 +335,17 @@ final class DisplayPortCalculator {
         //    viewportsize * (base + velocity * incr)
         // where base and incr are configurable values.
         private final float DANGER_ZONE_BASE_X_MULTIPLIER;
         private final float DANGER_ZONE_BASE_Y_MULTIPLIER;
         private final float DANGER_ZONE_INCR_X_MULTIPLIER;
         private final float DANGER_ZONE_INCR_Y_MULTIPLIER;
 
         VelocityBiasStrategy(Map<String, Integer> prefs) {
-            SIZE_MULTIPLIER = getFloatPref(prefs, PREF_DISPLAYPORT_VB_MULTIPLIER, 1500);
+            SIZE_MULTIPLIER = getFloatPref(prefs, PREF_DISPLAYPORT_VB_MULTIPLIER, 2000);
             VELOCITY_THRESHOLD = GeckoAppShell.getDpi() * getFloatPref(prefs, PREF_DISPLAYPORT_VB_VELOCITY_THRESHOLD, 32);
             REVERSE_BUFFER = getFloatPref(prefs, PREF_DISPLAYPORT_VB_REVERSE_BUFFER, 200);
             DANGER_ZONE_BASE_X_MULTIPLIER = getFloatPref(prefs, PREF_DISPLAYPORT_VB_DANGER_X_BASE, 1000);
             DANGER_ZONE_BASE_Y_MULTIPLIER = getFloatPref(prefs, PREF_DISPLAYPORT_VB_DANGER_Y_BASE, 1000);
             DANGER_ZONE_INCR_X_MULTIPLIER = getFloatPref(prefs, PREF_DISPLAYPORT_VB_DANGER_X_INCR, 0);
             DANGER_ZONE_INCR_Y_MULTIPLIER = getFloatPref(prefs, PREF_DISPLAYPORT_VB_DANGER_Y_INCR, 0);
         }