Make outline alpha APIs public

bug:16140822
Change-Id: Ie21e2a75b462319fb49c5696f0c019e1ea803bc1
This commit is contained in:
Chris Craik
2014-08-04 14:24:49 -07:00
parent e619d86723
commit 13ed2178c4
2 changed files with 4 additions and 6 deletions

View File

@@ -10983,8 +10983,10 @@ package android.graphics {
ctor public Outline();
ctor public Outline(android.graphics.Outline);
method public boolean canClip();
method public float getAlpha();
method public boolean isEmpty();
method public void set(android.graphics.Outline);
method public void setAlpha(float);
method public void setConvexPath(android.graphics.Path);
method public void setEmpty();
method public void setOval(int, int, int, int);

View File

@@ -92,19 +92,15 @@ public final class 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.
*
* @hide
*/
public void setAlpha(float alpha) {
mAlpha = alpha;
}
/**
* Sets the alpha represented by the Outline.
*
* @hide
* Returns the alpha represented by the Outline.
*/
public float getAlpha() {
return mAlpha;