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

Commit 0c37a9ea authored by Jerome Gaillard's avatar Jerome Gaillard
Browse files

Update Canvas_Delegate after Change I3edc963a

Test: layoutlib tests
Change-Id: I1f285c3baac267bd47324802c12b33d34f8b581f
parent 451911ea
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -209,20 +209,20 @@ public final class Canvas_Delegate extends BaseCanvas_Delegate {
    }

    @LayoutlibDelegate
    public static void nRestore(long nativeCanvas, boolean throwOnUnderflow) {
    public static boolean nRestore(long nativeCanvas) {
        // FIXME: implement throwOnUnderflow.
        // get the delegate from the native int.
        Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas);
        if (canvasDelegate == null) {
            return;
            return false;
        }

        canvasDelegate.restore();
        return true;
    }

    @LayoutlibDelegate
    public static void nRestoreToCount(long nativeCanvas, int saveCount,
            boolean throwOnUnderflow) {
    public static void nRestoreToCount(long nativeCanvas, int saveCount) {
        // FIXME: implement throwOnUnderflow.
        // get the delegate from the native int.
        Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas);
@@ -427,7 +427,7 @@ public final class Canvas_Delegate extends BaseCanvas_Delegate {
    }

    @LayoutlibDelegate
    public static void nGetCTM(long canvas, long matrix) {
    public static void nGetMatrix(long canvas, long matrix) {
        // get the delegate from the native int.
        Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(canvas);
        if (canvasDelegate == null) {
+2 −2
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ public class VectorDrawable_Delegate {
        bounds.offsetTo(0, 0);
        nativePathRenderer.draw(canvasWrapperPtr, colorFilterPtr, bounds.width(), bounds.height());

        Canvas_Delegate.nRestore(canvasWrapperPtr, true);
        Canvas_Delegate.nRestore(canvasWrapperPtr);

        return bounds.width() * bounds.height();
    }
@@ -1122,7 +1122,7 @@ public class VectorDrawable_Delegate {
                    drawPath(currentGroup, childPath, canvasPtr, w, h, filterPtr);
                }
            }
            Canvas_Delegate.nRestore(canvasPtr, true);
            Canvas_Delegate.nRestore(canvasPtr);
        }

        public void draw(long canvasPtr, long filterPtr, int w, int h) {