Bug 733041 - Switch to using the velocity-bias strategy by default. r=Cwiiis

This commit is contained in:
Kartikaya Gupta 2012-04-10 13:56:28 -05:00
parent 49cf07ae0d
commit eb9ca81204
2 changed files with 2 additions and 2 deletions

View File

@ -363,7 +363,7 @@ pref("places.frecency.unvisitedTypedBonus", 200);
pref("gfx.color_management.mode", 0);
#ifdef ANDROID
// 0=fixed margin, 1=velocity bias, 2=dynamic resolution, 3=no margins
pref("gfx.displayport.strategy", 0);
pref("gfx.displayport.strategy", 1);
#endif
// don't allow JS to move and resize existing windows

View File

@ -15,7 +15,7 @@ final class DisplayPortCalculator {
private static final String LOGTAG = "GeckoDisplayPortCalculator";
private static final PointF ZERO_VELOCITY = new PointF(0, 0);
private static DisplayPortStrategy sStrategy = new FixedMarginStrategy();
private static DisplayPortStrategy sStrategy = new VelocityBiasStrategy();
static DisplayPortMetrics calculate(ImmutableViewportMetrics metrics, PointF velocity) {
return sStrategy.calculate(metrics, (velocity == null ? ZERO_VELOCITY : velocity));