summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-07-07 18:52:03 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-07-07 18:52:03 -0700
commitf26d01a7cede78d1c865f56b0b526db20710c3a4 (patch)
tree102dcf9a2418b0c25beb861060acfc35f6c4fbfe /graphics
parent07b236edce31c9ae836e689f5266327138883f3a (diff)
parent0b9a22cf782ab8f837161bf3357e08471ff5b9f2 (diff)
downloadframeworks_base-f26d01a7cede78d1c865f56b0b526db20710c3a4.zip
frameworks_base-f26d01a7cede78d1c865f56b0b526db20710c3a4.tar.gz
frameworks_base-f26d01a7cede78d1c865f56b0b526db20710c3a4.tar.bz2
Merge "Add boolean support for setVar."
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/renderscript/Script.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/java/android/renderscript/Script.java b/graphics/java/android/renderscript/Script.java
index beac997..d9aec59 100644
--- a/graphics/java/android/renderscript/Script.java
+++ b/graphics/java/android/renderscript/Script.java
@@ -77,6 +77,10 @@ public class Script extends BaseObj {
mRS.nScriptSetVarI(mID, index, v);
}
+ public void setVar(int index, boolean v) {
+ mRS.nScriptSetVarI(mID, index, v ? 1 : 0);
+ }
+
public void setVar(int index, FieldPacker v) {
mRS.nScriptSetVarV(mID, index, v.getData());
}