Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 729d8369 authored by Mike Reed's avatar Mike Reed
Browse files

disable high-quality filtering during scrolling, until I can cached the scaled images.

parent a59551ba
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1646,6 +1646,8 @@ final class WebViewCore {

    final DrawFilter mZoomFilter =
                    new PaintFlagsDrawFilter(ZOOM_BITS, Paint.LINEAR_TEXT_FLAG);
    final DrawFilter mScrollFilter =
                new PaintFlagsDrawFilter(SCROLL_BITS, 0);

    /* package */ void drawContentPicture(Canvas canvas, int color,
                                          boolean animatingZoom,
@@ -1654,7 +1656,7 @@ final class WebViewCore {
        if (animatingZoom) {
            df = mZoomFilter;
        } else if (animatingScroll) {
            df = null;
            df = mScrollFilter;
        }
        canvas.setDrawFilter(df);
        boolean tookTooLong = nativeDrawContent(canvas, color);