diff options
author | Alex Sakhartchouk <alexst@google.com> | 2011-04-06 10:57:51 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2011-04-25 14:30:27 -0700 |
commit | 70b83c111beceaf8fbb700580833e7fec99272cf (patch) | |
tree | f19b3ba326b016025014f5ae35891dcd0967f77d /rsScriptC.cpp | |
parent | f47fb9b7ce529cee60ad211634bb27ed623f1098 (diff) | |
download | rs-70b83c111beceaf8fbb700580833e7fec99272cf.tar.gz |
Modifying libRS internal communication to handle network rendering.
Change-Id: I8c8b3cc3402ecf4ba774e1d668dce25ff0af0e5a
Diffstat (limited to 'rsScriptC.cpp')
-rw-r--r-- | rsScriptC.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rsScriptC.cpp b/rsScriptC.cpp index c379b8ba..6d0701d1 100644 --- a/rsScriptC.cpp +++ b/rsScriptC.cpp @@ -267,12 +267,13 @@ namespace android { namespace renderscript { RsScript rsi_ScriptCCreate(Context *rsc, - const char *resName, const char *cacheDir, - const char *text, uint32_t len) + const char *resName, size_t resName_length, + const char *cacheDir, size_t cacheDir_length, + const char *text, uint32_t text_length) { ScriptC *s = new ScriptC(rsc); - if (!s->runCompiler(rsc, resName, cacheDir, (uint8_t *)text, len)) { + if (!s->runCompiler(rsc, resName, cacheDir, (uint8_t *)text, text_length)) { // Error during compile, destroy s and return null. delete s; return NULL; |