summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2014-05-09 10:57:59 -0400
committerMike Reed <reed@google.com>2014-05-09 16:35:57 -0400
commit3c35b57cbbc1b20d609753f24677a305bff88f29 (patch)
tree36c2d6951403b1b46549f016eeccc366fe4f7b1e /graphics
parent91da58ded2e7c0dd3d045244cc78eb0d788736a7 (diff)
downloadframeworks_base-3c35b57cbbc1b20d609753f24677a305bff88f29.zip
frameworks_base-3c35b57cbbc1b20d609753f24677a305bff88f29.tar.gz
frameworks_base-3c35b57cbbc1b20d609753f24677a305bff88f29.tar.bz2
document and deprecated Rasterizer
Change-Id: I02f6a47aeb96b27c3fb9f6d003648f794e3d7cf4
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/LayerRasterizer.java3
-rw-r--r--graphics/java/android/graphics/Paint.java10
-rw-r--r--graphics/java/android/graphics/Rasterizer.java1
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 457b3ea..d96484e 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 {