summaryrefslogtreecommitdiff
path: root/tests/RenderScriptTests/ImageProcessing
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2011-07-25 12:58:37 -0700
committer Jason Sams <rjsams@android.com> 2011-07-25 12:58:37 -0700
commitcf57dec80b3d34f09fd22693fa5a07a3f3a9ea83 (patch)
tree31e96275c5ac6b97f3996ba94f6455985022bd96 /tests/RenderScriptTests/ImageProcessing
parent1a15b03f62e487103348d3e6a44cd31178dd1988 (diff)
Add size param to rsForEach
bug 5074640 Change-Id: I395bd8b295beacc979681ccdd3451d9d6cc3d672
Diffstat (limited to 'tests/RenderScriptTests/ImageProcessing')
-rw-r--r--tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/threshold.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/threshold.rs b/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/threshold.rs
index 16ebe08a11c7..d93238c2580c 100644
--- a/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/threshold.rs
+++ b/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/threshold.rs
@@ -84,10 +84,10 @@ void filter() {
fs.radius = radius;
fs.ain = rsGetAllocation(ScratchPixel1);
- rsForEach(hBlurScript, fs.ain, rsGetAllocation(ScratchPixel2), &fs);
+ rsForEach(hBlurScript, fs.ain, rsGetAllocation(ScratchPixel2), &fs, sizeof(fs));
fs.ain = rsGetAllocation(ScratchPixel2);
- rsForEach(vBlurScript, fs.ain, rsGetAllocation(OutPixel), &fs);
+ rsForEach(vBlurScript, fs.ain, rsGetAllocation(OutPixel), &fs, sizeof(fs));
rsSendToClientBlocking(CMD_FINISHED);
}