diff options
author | Tim Murray <timmurray@google.com> | 2014-01-13 11:47:53 -0800 |
---|---|---|
committer | Tim Murray <timmurray@google.com> | 2014-01-13 11:47:53 -0800 |
commit | 6f842ac8aa37dd855fbffdc09f5491bd85ab3c9a (patch) | |
tree | 9228f5d9e3f2f84b26c5921f288567abd799b54e /rs/java/android/renderscript/ScriptIntrinsicBlur.java | |
parent | 291d64685dd05f76deaf210a75d2d06c153f4b39 (diff) |
Add clipping for intrinsics.
Change-Id: Ic7e1da3c69aa3d5f990816178739120b6059e7a5
Diffstat (limited to 'rs/java/android/renderscript/ScriptIntrinsicBlur.java')
-rw-r--r-- | rs/java/android/renderscript/ScriptIntrinsicBlur.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/rs/java/android/renderscript/ScriptIntrinsicBlur.java b/rs/java/android/renderscript/ScriptIntrinsicBlur.java index 2b36d27b0705..e7e33b8d884f 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. |