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

Commit 3cb5ded9 authored by Nicolas Roard's avatar Nicolas Roard Committed by Nicolas Roard
Browse files

Partial invalidation of the browser textures

corresponding webkit CL: https://android-git.corp.google.com/g/#change,100673

bug:3461349 bug:3464483
Change-Id: I913b07a27129e37d8d949dd62e71d350ed119569
parent 39184a08
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -4036,15 +4036,10 @@ public class WebView extends AbsoluteLayout
        }
    }

    void setBaseLayer(int layer, Rect invalRect, boolean showVisualIndciator) {
    void setBaseLayer(int layer, Region invalRegion, boolean showVisualIndicator) {
        if (mNativeClass == 0)
            return;
        if (invalRect == null) {
            Rect rect = new Rect(0, 0, mContentWidth, mContentHeight);
            nativeSetBaseLayer(layer, rect, showVisualIndciator);
        } else {
            nativeSetBaseLayer(layer, invalRect, showVisualIndciator);
        }
        nativeSetBaseLayer(layer, invalRegion, showVisualIndicator);
    }

    private void onZoomAnimationStart() {
@@ -7571,7 +7566,7 @@ public class WebView extends AbsoluteLayout
                case NEW_PICTURE_MSG_ID: {
                    // called for new content
                    final WebViewCore.DrawData draw = (WebViewCore.DrawData) msg.obj;
                    setBaseLayer(draw.mBaseLayer, draw.mInvalRegion.getBounds(),
                    setBaseLayer(draw.mBaseLayer, draw.mInvalRegion,
                            getSettings().getShowVisualIndicator());
                    final Point viewSize = draw.mViewSize;
                    WebViewCore.ViewState viewState = draw.mViewState;
@@ -8613,7 +8608,7 @@ public class WebView extends AbsoluteLayout
    private native void     nativeSetFindIsEmpty();
    private native void     nativeSetFindIsUp(boolean isUp);
    private native void     nativeSetHeightCanMeasure(boolean measure);
    private native void     nativeSetBaseLayer(int layer, Rect invalRect,
    private native void     nativeSetBaseLayer(int layer, Region invalRegion,
            boolean showVisualIndicator);
    private native void     nativeShowCursorTimed();
    private native void     nativeReplaceBaseContent(int content);