summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wala <wala@google.com>2015-07-20 15:38:17 -0700
committerMatt Wala <wala@google.com>2015-07-21 11:09:01 -0700
commit39a9d9b7d1e1231c89021d2a45b59e9c08eed4b4 (patch)
treedc74c3cefeff9a7865cda566e1bc8938c132fef2
parent83268ff957a17fc21132e923709ca43cea9b251c (diff)
downloadrs-39a9d9b7d1e1231c89021d2a45b59e9c08eed4b4.tar.gz
Add a ScriptReduce API entry and a stub function rsi_ScriptReduce().
Bug: 22631253 Change-Id: I16769d58e3ff3ac712d005b07ffa5aff4116d227
-rw-r--r--rs.spec8
-rw-r--r--rsScript.cpp6
2 files changed, 14 insertions, 0 deletions
diff --git a/rs.spec b/rs.spec
index e9051ac0..226e3af0 100644
--- a/rs.spec
+++ b/rs.spec
@@ -399,6 +399,14 @@ ScriptForEachMulti {
param const RsScriptCall * sc
}
+ScriptReduce {
+ param RsScript s
+ param uint32_t slot
+ param RsAllocation ain
+ param RsAllocation aout
+ param const RsScriptCall * sc
+}
+
ScriptSetVarI {
param RsScript s
param uint32_t slot
diff --git a/rsScript.cpp b/rsScript.cpp
index 7ea9857b..483789cb 100644
--- a/rsScript.cpp
+++ b/rsScript.cpp
@@ -224,6 +224,12 @@ void rsi_ScriptForEach(Context *rsc, RsScript vs, uint32_t slot,
}
}
+void rsi_ScriptReduce(Context *rsc, RsScript vs, uint32_t slot,
+ RsAllocation vain, RsAllocation vaout,
+ const RsScriptCall *sc, size_t scLen) {
+ // TODO(wala)
+}
+
void rsi_ScriptInvoke(Context *rsc, RsScript vs, uint32_t slot) {
Script *s = static_cast<Script *>(vs);
s->Invoke(rsc, slot, nullptr, 0);