diff options
author | 2011-04-27 15:12:49 -0700 | |
---|---|---|
committer | 2011-04-27 15:12:49 -0700 | |
commit | a08526ac42b3da98926ae921a6d8cfb9bbc90553 (patch) | |
tree | d4719927966c31cee147754c3939fea02b0c56b2 /libs/rs/rsScript.cpp | |
parent | b4a56f10d875dc62a9c73008f98596c7e32fc249 (diff) |
Start implementing control side forEach.
Change-Id: I2d77d908cbb64b26071d9d5a3421f0b195342d2c
Diffstat (limited to 'libs/rs/rsScript.cpp')
-rw-r--r-- | libs/rs/rsScript.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/rs/rsScript.cpp b/libs/rs/rsScript.cpp index b84014fa31d4..7641cab03c27 100644 --- a/libs/rs/rsScript.cpp +++ b/libs/rs/rsScript.cpp @@ -87,6 +87,16 @@ void rsi_ScriptSetTimeZone(Context * rsc, RsScript vs, const char * timeZone, ui s->mEnviroment.mTimeZone = timeZone; } +void rsi_ScriptForEach(Context *rsc, RsScript vs, uint32_t slot, + RsAllocation vain, RsAllocation vaout, + const void *params, uint32_t paramLen) { + Script *s = static_cast<Script *>(vs); + s->runForEach(rsc, + static_cast<const Allocation *>(vain), static_cast<Allocation *>(vaout), + params, paramLen); + +} + void rsi_ScriptInvoke(Context *rsc, RsScript vs, uint32_t slot) { Script *s = static_cast<Script *>(vs); s->Invoke(rsc, slot, NULL, 0); |