summaryrefslogtreecommitdiffstats
path: root/rs/java/android/renderscript/ScriptIntrinsicBlur.java
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2014-01-14 00:43:09 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-01-14 00:43:09 +0000
commit881c6d57d2528c6eb1bdc934915595f92595bd53 (patch)
tree9923244d9fc30d9f5b87456f74b9a243615f996c /rs/java/android/renderscript/ScriptIntrinsicBlur.java
parent3778e50d919c29fa0e20df813b119eedd70c1329 (diff)
parent6f842ac8aa37dd855fbffdc09f5491bd85ab3c9a (diff)
downloadframeworks_base-881c6d57d2528c6eb1bdc934915595f92595bd53.zip
frameworks_base-881c6d57d2528c6eb1bdc934915595f92595bd53.tar.gz
frameworks_base-881c6d57d2528c6eb1bdc934915595f92595bd53.tar.bz2
Merge "Add clipping for intrinsics."
Diffstat (limited to 'rs/java/android/renderscript/ScriptIntrinsicBlur.java')
-rw-r--r--rs/java/android/renderscript/ScriptIntrinsicBlur.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/rs/java/android/renderscript/ScriptIntrinsicBlur.java b/rs/java/android/renderscript/ScriptIntrinsicBlur.java
index 2b36d27..e7e33b8 100644
--- a/rs/java/android/renderscript/ScriptIntrinsicBlur.java
+++ b/rs/java/android/renderscript/ScriptIntrinsicBlur.java
@@ -84,10 +84,23 @@ public final class ScriptIntrinsicBlur extends ScriptIntrinsic {
* type.
*/
public void forEach(Allocation aout) {
- forEach(0, null, aout, null);
+ forEach(aout, null);
}
/**
+ * Apply the filter to the input and save to the specified
+ * allocation.
+ *
+ * @param aout Output allocation. Must match creation element
+ * type.
+ * @param opt LaunchOptions for clipping
+ */
+ public void forEach(Allocation aout, Script.LaunchOptions opt) {
+ forEach(0, null, aout, null, opt);
+ }
+
+
+ /**
* Get a KernelID for this intrinsic kernel.
*
* @return Script.KernelID The KernelID object.