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
Родитель f7a55fe5be
Коммит 821abe67fa
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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));