LibreOffice Module android (master) 1
Public Member Functions | Private Attributes | List of all members
org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy Class Reference

This class implements the variation where we use a fixed-size margin on the display port. More...

Inheritance diagram for org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy:
[legend]
Collaboration diagram for org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy:
[legend]

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
 

Detailed Description

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.

Member Function Documentation

◆ aboutToCheckerboard()

boolean org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.aboutToCheckerboard ( ImmutableViewportMetrics  metrics,
PointF  velocity,
DisplayPortMetrics  displayPort 
)
inline

◆ calculate()

DisplayPortMetrics org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.calculate ( ImmutableViewportMetrics  metrics,
PointF  velocity 
)
inline

◆ toString()

String org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.toString ( )
inline

Member Data Documentation

◆ DANGER_ZONE_X_MULTIPLIER

final float org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.DANGER_ZONE_X_MULTIPLIER
private

◆ DANGER_ZONE_Y_MULTIPLIER

final float org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.DANGER_ZONE_Y_MULTIPLIER
private

◆ SIZE_MULTIPLIER

final float org.mozilla.gecko.gfx.DisplayPortCalculator.FixedMarginStrategy.SIZE_MULTIPLIER
private

The documentation for this class was generated from the following file: