diff options
author | Mike Reed <reed@google.com> | 2014-05-15 20:38:43 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-15 20:38:44 +0000 |
commit | ca2624122c4ea4c22f305aec670f7841771c00ee (patch) | |
tree | 6c3397059d273318882028f7fadb0ca15867a44e /graphics | |
parent | e71c2af2a1b1a93f879df2258ab74368efac0780 (diff) | |
parent | 3c35b57cbbc1b20d609753f24677a305bff88f29 (diff) | |
download | frameworks_base-ca2624122c4ea4c22f305aec670f7841771c00ee.zip frameworks_base-ca2624122c4ea4c22f305aec670f7841771c00ee.tar.gz frameworks_base-ca2624122c4ea4c22f305aec670f7841771c00ee.tar.bz2 |
Merge "document and deprecated Rasterizer"
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/LayerRasterizer.java | 3 | ||||
-rw-r--r-- | graphics/java/android/graphics/Paint.java | 10 | ||||
-rw-r--r-- | graphics/java/android/graphics/Rasterizer.java | 1 |
3 files changed, 11 insertions, 3 deletions
diff --git a/graphics/java/android/graphics/LayerRasterizer.java b/graphics/java/android/graphics/LayerRasterizer.java index 5b35608..e7a24a4 100644 --- a/graphics/java/android/graphics/LayerRasterizer.java +++ b/graphics/java/android/graphics/LayerRasterizer.java @@ -16,11 +16,12 @@ package android.graphics; +@Deprecated public class LayerRasterizer extends Rasterizer { public LayerRasterizer() { native_instance = nativeConstructor(); } - + /** Add a new layer (above any previous layers) to the rasterizer. The layer will extract those fields that affect the mask from the specified paint, but will not retain a reference to the paint diff --git a/graphics/java/android/graphics/Paint.java b/graphics/java/android/graphics/Paint.java index bdef404..92cfd6b 100644 --- a/graphics/java/android/graphics/Paint.java +++ b/graphics/java/android/graphics/Paint.java @@ -1064,14 +1064,17 @@ public class Paint { mNativeTypeface = typefaceNative; return typeface; } - + /** * Get the paint's rasterizer (or null). * <p /> * The raster controls/modifies how paths/text are turned into alpha masks. * * @return the paint's rasterizer (or null) + * + * @deprecated Rasterizer is not supported by either the HW or PDF backends. */ + @Deprecated public Rasterizer getRasterizer() { return mRasterizer; } @@ -1085,7 +1088,10 @@ public class Paint { * @param rasterizer May be null. The new rasterizer to be installed in * the paint. * @return rasterizer + * + * @deprecated Rasterizer is not supported by either the HW or PDF backends. */ + @Deprecated public Rasterizer setRasterizer(Rasterizer rasterizer) { long rasterizerNative = 0; if (rasterizer != null) { @@ -1095,7 +1101,7 @@ public class Paint { mRasterizer = rasterizer; return rasterizer; } - + /** * This draws a shadow layer below the main layer, with the specified * offset and color, and blur radius. If radius is 0, then the shadow diff --git a/graphics/java/android/graphics/Rasterizer.java b/graphics/java/android/graphics/Rasterizer.java index 817814c..c351d94e 100644 --- a/graphics/java/android/graphics/Rasterizer.java +++ b/graphics/java/android/graphics/Rasterizer.java @@ -21,6 +21,7 @@ package android.graphics; +@Deprecated public class Rasterizer { protected void finalize() throws Throwable { |