LibreOffice Module android (master) 1
|
This class implements the variation where we use a fixed-size margin on the display port. More...
Public Member Functions | |
DisplayPortMetrics | calculate (ImmutableViewportMetrics metrics, PointF velocity) |
Calculates a displayport given a viewport and panning velocity. More... | |
boolean | aboutToCheckerboard (ImmutableViewportMetrics metrics, PointF velocity, DisplayPortMetrics displayPort) |
Returns true if a checkerboard is about to be visible and we should not throttle drawing. More... | |
String | toString () |
Public Member Functions inherited from org.mozilla.gecko.gfx.DisplayPortCalculator.DisplayPortStrategy | |
abstract DisplayPortMetrics | calculate (ImmutableViewportMetrics metrics, PointF velocity) |
Calculates a displayport given a viewport and panning velocity. More... | |
abstract boolean | aboutToCheckerboard (ImmutableViewportMetrics metrics, PointF velocity, DisplayPortMetrics displayPort) |
Returns true if a checkerboard is about to be visible and we should not throttle drawing. More... | |
boolean | drawTimeUpdate (long millis, int pixels) |
Notify the strategy of a new recorded draw time. More... | |
void | resetPageState () |
Reset any page-specific state stored, as the page being displayed has changed. More... | |
Private Attributes | |
final float | SIZE_MULTIPLIER |
final float | DANGER_ZONE_X_MULTIPLIER |
final float | DANGER_ZONE_Y_MULTIPLIER |
This class implements the variation where we use a fixed-size margin on the display port.
The margin is always 300 pixels in all directions, except when we are (a) approaching a page boundary, and/or (b) if we are limited by the page size. In these cases we try to maintain the area of the display port by (a) shifting the buffer to the other side on the same axis, and/or (b) increasing the buffer on the other axis to compensate for the reduced buffer on one axis.
Definition at line 263 of file DisplayPortCalculator.java.
|
inline |
Returns true if a checkerboard is about to be visible and we should not throttle drawing.
Reimplemented from org.mozilla.gecko.gfx.DisplayPortCalculator.DisplayPortStrategy.
Definition at line 306 of file DisplayPortCalculator.java.
References org.mozilla.gecko.gfx.DisplayPortMetrics.contains(), org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.DANGER_ZONE_X_MULTIPLIER, org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.DANGER_ZONE_Y_MULTIPLIER, and org.mozilla.gecko.gfx.ImmutableViewportMetrics.getViewport().
|
inline |
Calculates a displayport given a viewport and panning velocity.
Reimplemented from org.mozilla.gecko.gfx.DisplayPortCalculator.DisplayPortStrategy.
Definition at line 279 of file DisplayPortCalculator.java.
References org.mozilla.gecko.gfx.ImmutableViewportMetrics.getHeight(), org.mozilla.gecko.gfx.ImmutableViewportMetrics.getWidth(), org.mozilla.gecko.gfx.FloatSize.height, org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.SIZE_MULTIPLIER, org.mozilla.gecko.gfx.FloatSize.width, and org.mozilla.gecko.gfx.ImmutableViewportMetrics.zoomFactor.
|
inline |
Definition at line 315 of file DisplayPortCalculator.java.
References org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.DANGER_ZONE_X_MULTIPLIER, org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.DANGER_ZONE_Y_MULTIPLIER, org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.SIZE_MULTIPLIER, and String.
|
private |
Definition at line 270 of file DisplayPortCalculator.java.
Referenced by org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.aboutToCheckerboard(), and org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.toString().
|
private |
Definition at line 271 of file DisplayPortCalculator.java.
Referenced by org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.aboutToCheckerboard(), and org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.toString().
|
private |
Definition at line 266 of file DisplayPortCalculator.java.
Referenced by org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.calculate(), and org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.toString().