зеркало из https://github.com/mozilla/pjs.git
Bug 733041 - Switch to using the velocity-bias strategy by default. r=Cwiiis
This commit is contained in:
Родитель
49172de7e8
Коммит
8f1f15a4fc
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче