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

Commit dafc19a1 authored by Mike Reed's avatar Mike Reed
Browse files

do not merge

remove the filter when we're scrolling, so we don't degrade the quality

http://b/issue?id=2174463&cookieId=2009300052135424

same change (in spirit) in MR2

https://android-git.corp.google.com/g/#change,30860
parent 86328a99
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1643,8 +1643,6 @@ 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,
@@ -1653,7 +1651,7 @@ final class WebViewCore {
        if (animatingZoom) {
            df = mZoomFilter;
        } else if (animatingScroll) {
            df = mScrollFilter;
            df = null;
        }
        canvas.setDrawFilter(df);
        boolean tookTooLong = nativeDrawContent(canvas, color);