From 818cfa034e257c7bb48356257f5cb67334e19aa6 Mon Sep 17 00:00:00 2001 From: Chris Wailes Date: Wed, 16 Jul 2014 15:18:30 -0700 Subject: Collapse code paths for single- and multi-input kernels. This patch simplifies the RenderScript driver and CPU reference implementation by removing the distinction between sing- and multi-input kernels in many places. The distinction is maintained in some places due to the need to maintain backwards compatibility. This permits the deletion of some functions and struct members that are no longer needed. Several related functions were also cleaned up. Change-Id: I77e4b155cc7ca1581b05bf901c70ae53a9ff0b12 --- rsScript.cpp | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to 'rsScript.cpp') diff --git a/rsScript.cpp b/rsScript.cpp index ea1b3ac9..a4fa1966 100644 --- a/rsScript.cpp +++ b/rsScript.cpp @@ -187,23 +187,13 @@ void rsi_ScriptSetTimeZone(Context * rsc, RsScript vs, const char * timeZone, si free(tz); } -void rsi_ScriptForEach(Context *rsc, RsScript vs, uint32_t slot, - RsAllocation vain, RsAllocation vaout, - const void *params, size_t paramLen, - const RsScriptCall *sc, size_t scLen) { - Script *s = static_cast