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

Commit 13ed2178 authored by Chris Craik's avatar Chris Craik
Browse files

Make outline alpha APIs public

bug:16140822
Change-Id: Ie21e2a75b462319fb49c5696f0c019e1ea803bc1
parent e619d867
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -10983,8 +10983,10 @@ package android.graphics {
    ctor public Outline();
    ctor public Outline();
    ctor public Outline(android.graphics.Outline);
    ctor public Outline(android.graphics.Outline);
    method public boolean canClip();
    method public boolean canClip();
    method public float getAlpha();
    method public boolean isEmpty();
    method public boolean isEmpty();
    method public void set(android.graphics.Outline);
    method public void set(android.graphics.Outline);
    method public void setAlpha(float);
    method public void setConvexPath(android.graphics.Path);
    method public void setConvexPath(android.graphics.Path);
    method public void setEmpty();
    method public void setEmpty();
    method public void setOval(int, int, int, int);
    method public void setOval(int, int, int, int);
+2 −6
Original line number Original line Diff line number Diff line
@@ -92,19 +92,15 @@ public final class Outline {
    /**
    /**
     * Sets the alpha represented by the Outline.
     * Sets the alpha represented by the Outline.
     *
     *
     * Content producing a fully opaque (alpha = 1.0f) outline is assumed, by the drawing system,
     * Content producing a fully opaque (alpha = 1.0f) outline is assumed by the drawing system
     * to fully cover content beneath it, meaning content beneath may be optimized away.
     * to fully cover content beneath it, meaning content beneath may be optimized away.
     *
     * @hide
     */
     */
    public void setAlpha(float alpha) {
    public void setAlpha(float alpha) {
        mAlpha = alpha;
        mAlpha = alpha;
    }
    }


    /**
    /**
     * Sets the alpha represented by the Outline.
     * Returns the alpha represented by the Outline.
     *
     * @hide
     */
     */
    public float getAlpha() {
    public float getAlpha() {
        return mAlpha;
        return mAlpha;