summaryrefslogtreecommitdiffstats
path: root/graphics/java/android/renderscript
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-07-02 15:35:19 -0700
committerJason Sams <rjsams@android.com>2010-07-07 17:08:07 -0700
commit0b9a22cf782ab8f837161bf3357e08471ff5b9f2 (patch)
treec271ab5e3b01f3260056d4d740e26bc87a16bfad /graphics/java/android/renderscript
parent9bf225ef7b82b5eacee1907155a8a8bbb6aa7f42 (diff)
downloadframeworks_base-0b9a22cf782ab8f837161bf3357e08471ff5b9f2.zip
frameworks_base-0b9a22cf782ab8f837161bf3357e08471ff5b9f2.tar.gz
frameworks_base-0b9a22cf782ab8f837161bf3357e08471ff5b9f2.tar.bz2
Add boolean support for setVar.
Change-Id: Id64f3b2e43e19fc2a2d5fd81bb98d9ca67aae843
Diffstat (limited to 'graphics/java/android/renderscript')
-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());
}