summaryrefslogtreecommitdiffstats
path: root/graphics/java/android/renderscript/Element.java
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2012-04-11 17:27:29 -0700
committerStephen Hines <srhines@google.com>2012-04-11 18:15:55 -0700
commit3a2914132146f340511425d7f78540098606b512 (patch)
treecac181c8235b60f244e31e83a7c156b97101592f /graphics/java/android/renderscript/Element.java
parent7e6ee74ac40396746f814d57160e30543e632c9a (diff)
downloadframeworks_base-3a2914132146f340511425d7f78540098606b512.zip
frameworks_base-3a2914132146f340511425d7f78540098606b512.tar.gz
frameworks_base-3a2914132146f340511425d7f78540098606b512.tar.bz2
Add missing support for Element.FONT().
Change-Id: Id66676958cc41d934b7f01acd65916f6d777d355
Diffstat (limited to 'graphics/java/android/renderscript/Element.java')
-rw-r--r--graphics/java/android/renderscript/Element.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/graphics/java/android/renderscript/Element.java b/graphics/java/android/renderscript/Element.java
index d75c951..4afe9d9 100644
--- a/graphics/java/android/renderscript/Element.java
+++ b/graphics/java/android/renderscript/Element.java
@@ -150,7 +150,8 @@ public class Element extends BaseObj {
RS_PROGRAM_FRAGMENT (1006, 4),
RS_PROGRAM_VERTEX (1007, 4),
RS_PROGRAM_RASTER (1008, 4),
- RS_PROGRAM_STORE (1009, 4);
+ RS_PROGRAM_STORE (1009, 4),
+ RS_FONT (1010, 4);
int mID;
int mSize;
@@ -455,6 +456,13 @@ public class Element extends BaseObj {
return rs.mElement_PROGRAM_STORE;
}
+ public static Element FONT(RenderScript rs) {
+ if(rs.mElement_FONT == null) {
+ rs.mElement_FONT = createUser(rs, DataType.RS_FONT);
+ }
+ return rs.mElement_FONT;
+ }
+
public static Element A_8(RenderScript rs) {
if(rs.mElement_A_8 == null) {