summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/Script.java
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2013-02-12 16:22:34 -0800
committerTim Murray <timmurray@google.com>2013-02-12 16:23:19 -0800
commitba9dd06176cf833898832861114e225fdb428ea0 (patch)
treeb3d2047479bbe610c0205902e9ffba76bf92d7c0 /graphics/java/android/renderscript/Script.java
parent005f6f6077f34e0157598882fdc7ddb794cad84e (diff)
Pass through null LaunchOption structs to standard forEach.
Change-Id: I4dcde6996400207c7e361ff4b7723ec7db832e80
Diffstat (limited to 'graphics/java/android/renderscript/Script.java')
-rw-r--r--graphics/java/android/renderscript/Script.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/java/android/renderscript/Script.java b/graphics/java/android/renderscript/Script.java
index b53ba0d7e80a..b4055882ab2a 100644
--- a/graphics/java/android/renderscript/Script.java
+++ b/graphics/java/android/renderscript/Script.java
@@ -171,6 +171,11 @@ public class Script extends BaseObj {
throw new RSIllegalArgumentException(
"At least one of ain or aout is required to be non-null.");
}
+
+ if (sc == null) {
+ forEach(slot, ain, aout, v);
+ return;
+ }
int in_id = 0;
if (ain != null) {
in_id = ain.getID(mRS);