android/source/src/java/org/mozilla/gecko/gfx/LayerRenderer.java | 43 ---------- 1 file changed, 43 deletions(-)
New commits: commit 3cedd0780e5777790cdfab9f2b7657187bea1627 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Wed Nov 8 17:20:13 2023 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Thu Nov 9 07:55:09 2023 +0100 android: Drop unused LayerRenderer#Frame#getMaskForLayer Unused since commit 96a498b44c0a0ca48ac9938d9414191850d47d18 Date: Fri Dec 19 16:24:02 2014 +0900 android: remove screenshot layer Change-Id: I3b83596bb854cb4bdfc6281ca487c8be15bc61d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159167 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/android/source/src/java/org/mozilla/gecko/gfx/LayerRenderer.java b/android/source/src/java/org/mozilla/gecko/gfx/LayerRenderer.java index 26fbfc79a895..875b3fddd756 100644 --- a/android/source/src/java/org/mozilla/gecko/gfx/LayerRenderer.java +++ b/android/source/src/java/org/mozilla/gecko/gfx/LayerRenderer.java @@ -380,45 +380,6 @@ public class LayerRenderer implements GLSurfaceView.Renderer { mUpdated &= layer.update(mPageContext); // called on compositor thread } - /** Retrieves the bounds for the layer, rounded in such a way that it - * can be used as a mask for something that will render underneath it. - * This will round the bounds inwards, but stretch the mask towards any - * near page edge, where near is considered to be 'within 2 pixels'. - * Returns null if the given layer is null. - */ - private Rect getMaskForLayer(Layer layer) { - if (layer == null) { - return null; - } - - RectF bounds = RectUtils.contract(layer.getBounds(mPageContext), 1.0f, 1.0f); - Rect mask = RectUtils.roundIn(bounds); - - // If the mask is within two pixels of any page edge, stretch it over - // that edge. This is to avoid drawing thin slivers when masking - // layers. - if (mask.top <= 2) { - mask.top = -1; - } - if (mask.left <= 2) { - mask.left = -1; - } - - // Because we're drawing relative to the page-rect, we only need to - // take into account its width and height (and not its origin) - int pageRight = mPageRect.width(); - int pageBottom = mPageRect.height(); - - if (mask.right >= pageRight - 2) { - mask.right = pageRight + 1; - } - if (mask.bottom >= pageBottom - 2) { - mask.bottom = pageBottom + 1; - } - - return mask; - } - public void drawBackground() { GLES20.glDisable(GLES20.GL_SCISSOR_TEST); commit 61bfc27f0495ab0427453e6d6078c3abe4777f56 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Wed Nov 8 17:15:59 2023 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Thu Nov 9 07:55:01 2023 +0100 android: Drop LayerRenderer#Frame#mFrameStartTime The member is assigned a value that is never used, so just drop it. Might have been more useful before commit 8734422b0b85b54c3fccc2b678171ed174c2b8bd Date: Mon Feb 23 20:53:35 2015 +0900 android: remove DrawTimingQueue and PanningPerfAPI Change-Id: Ieec958c0d5a75fc47af467c73b218d6150ceaab4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159166 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/android/source/src/java/org/mozilla/gecko/gfx/LayerRenderer.java b/android/source/src/java/org/mozilla/gecko/gfx/LayerRenderer.java index b9d27291f1b3..26fbfc79a895 100644 --- a/android/source/src/java/org/mozilla/gecko/gfx/LayerRenderer.java +++ b/android/source/src/java/org/mozilla/gecko/gfx/LayerRenderer.java @@ -304,8 +304,6 @@ public class LayerRenderer implements GLSurfaceView.Renderer { } public class Frame { - // The timestamp recording the start of this frame. - private long mFrameStartTime; // A fixed snapshot of the viewport metrics that this frame is using to render content. private ImmutableViewportMetrics mFrameMetrics; // A rendering context for page-positioned layers, and one for screen-positioned layers. @@ -348,8 +346,6 @@ public class LayerRenderer implements GLSurfaceView.Renderer { } public void beginDrawing() { - mFrameStartTime = SystemClock.uptimeMillis(); - TextureReaper.get().reap(); TextureGenerator.get().fill();