android/source/src/java/org/mozilla/gecko/gfx/DisplayPortCalculator.java | 12 ---------- 1 file changed, 12 deletions(-)
New commits: commit 0ab124cc90db0abe4441ffd273734ec28a212ab4 Author: Michael Weghorn <[email protected]> AuthorDate: Tue Nov 11 15:12:18 2025 +0100 Commit: Michael Weghorn <[email protected]> CommitDate: Wed Nov 12 01:45:08 2025 +0100 android: Drop unused DisplayPortCalculator methods Also drop the now unused corresponding DisplayPortStrategy methods. Change-Id: I83927686d979f1a882b628d86ea4b060a027b666 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193813 Reviewed-by: Michael Weghorn <[email protected]> Tested-by: Jenkins diff --git a/android/source/src/java/org/mozilla/gecko/gfx/DisplayPortCalculator.java b/android/source/src/java/org/mozilla/gecko/gfx/DisplayPortCalculator.java index 61898023a5bb..a571b87e2221 100644 --- a/android/source/src/java/org/mozilla/gecko/gfx/DisplayPortCalculator.java +++ b/android/source/src/java/org/mozilla/gecko/gfx/DisplayPortCalculator.java @@ -39,23 +39,11 @@ final class DisplayPortCalculator { return sStrategy.aboutToCheckerboard(metrics, (velocity == null ? ZERO_VELOCITY : velocity), displayPort); } - boolean drawTimeUpdate(long millis, int pixels) { - return sStrategy.drawTimeUpdate(millis, pixels); - } - - void resetPageState() { - sStrategy.resetPageState(); - } - private static abstract class DisplayPortStrategy { /** Calculates a displayport given a viewport and panning velocity. */ public abstract DisplayPortMetrics calculate(ImmutableViewportMetrics metrics, PointF velocity); /** Returns true if a checkerboard is about to be visible and we should not throttle drawing. */ public abstract boolean aboutToCheckerboard(ImmutableViewportMetrics metrics, PointF velocity, DisplayPortMetrics displayPort); - /** Notify the strategy of a new recorded draw time. Return false to turn off draw time recording. */ - public boolean drawTimeUpdate(long millis, int pixels) { return false; } - /** Reset any page-specific state stored, as the page being displayed has changed. */ - public void resetPageState() {} } /**
