diff options
| author | Jason Sams <rjsams@android.com> | 2010-07-15 17:11:13 -0700 |
|---|---|---|
| committer | Jason Sams <rjsams@android.com> | 2010-07-15 17:11:13 -0700 |
| commit | 8f8a5724bee0f958ef81a7154e4fd40fb6f07a49 (patch) | |
| tree | 06ae96f235518c3ba85241523903f9be4c1b01cb /libs/rs/scriptc | |
| parent | 506821b406181ff9b9a10c2fc078d16b79a8cf92 (diff) | |
| download | frameworks_base-8f8a5724bee0f958ef81a7154e4fd40fb6f07a49.zip frameworks_base-8f8a5724bee0f958ef81a7154e4fd40fb6f07a49.tar.gz frameworks_base-8f8a5724bee0f958ef81a7154e4fd40fb6f07a49.tar.bz2 | |
1st cut of ForEach and test.
Change-Id: I6534569c8d26db8b9691666134a555c8bf94184e
Diffstat (limited to 'libs/rs/scriptc')
| -rw-r--r-- | libs/rs/scriptc/rs_math.rsh | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/libs/rs/scriptc/rs_math.rsh b/libs/rs/scriptc/rs_math.rsh index 4390a5d..e11c832 100644 --- a/libs/rs/scriptc/rs_math.rsh +++ b/libs/rs/scriptc/rs_math.rsh @@ -48,11 +48,7 @@ extern int64_t rsElapsedTimeMillis(); extern int rsSendToClient(void *data, int cmdID, int len, int waitForSpace); // Script to Script -typedef struct rs_script_call_rec { - rs_script script; - rs_allocation input; - rs_allocation output; - +typedef struct rs_script_call { uint32_t xStart; uint32_t xEnd; uint32_t yStart; @@ -62,14 +58,17 @@ typedef struct rs_script_call_rec { uint32_t arrayStart; uint32_t arrayEnd; - const void * usrData; -} rs_script_call; +} rs_script_call_t; + +extern void __attribute__((overloadable))rsForEach(rs_script script, + rs_allocation input, + rs_allocation output, + const void * usrData); -extern void __attribute__((overloadable))rsForEach(rs_script, rs_allocation input); -extern void __attribute__((overloadable))rsForEach(rs_script, rs_allocation input, rs_allocation output); -extern void __attribute__((overloadable))rsForEach(rs_script, rs_allocation input, int xStart, int xEnd); -extern void __attribute__((overloadable))rsForEach(rs_script, rs_allocation input, rs_allocation output, int xStart, int xEnd); -extern void __attribute__((overloadable))rsForEach(rs_script, rs_allocation input, int xStart, int yStart, int xEnd, int yEnd); -extern void __attribute__((overloadable))rsForEach(rs_script, rs_allocation input, rs_allocation output, int xStart, int yStart, int xEnd, int yEnd); +extern void __attribute__((overloadable))rsForEach(rs_script script, + rs_allocation input, + rs_allocation output, + const void * usrData, + const rs_script_call_t *); #endif |
