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

Commit dcc64a4e authored by Robert Phillips's avatar Robert Phillips
Browse files

Update Picture documentation

Enhanced comment

Given that the SkPictures should no longer have unbalanced saves and restores
there should be no inadvertent leakage of matrix or clip state.

Note that the existing documentation was vague enough that no real substantive
changes were required to make it match the new behavior.

Change-Id: Ic2d440b3e6318ec9687c607caba05de928e08503
parent 78b245bf
Loading
Loading
Loading
Loading
+14 −11
Original line number Diff line number Diff line
@@ -94,8 +94,11 @@ public class Picture {
    public native int getHeight();

    /**
     * Draw this picture on the canvas. The picture may have the side effect
     * of changing the matrix and clip of the canvas.
     * Draw this picture on the canvas.
     * <p>
     * Prior to {@link android.os.Build.VERSION_CODES#L}, this call could
     * have the side effect of changing the matrix and clip of the canvas
     * if this picture had imbalanced saves/restores.
     *
     * <p>
     * <strong>Note:</strong> This forces the picture to internally call