From 17a8a1939d4cbc74de54954c67f3dd61882420aa Mon Sep 17 00:00:00 2001 From: Alex Sakhartchouk Date: Fri, 3 Jun 2011 10:18:01 -0700 Subject: More work to make libRS buildable on the host. Change-Id: I239585ef7c1334f7fc19fa6423535dea7b9a753f --- libs/rs/rsScriptC.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'libs/rs/rsScriptC.cpp') diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp index 6d0701d18720..b230bb5b3a73 100644 --- a/libs/rs/rsScriptC.cpp +++ b/libs/rs/rsScriptC.cpp @@ -19,11 +19,6 @@ #include "utils/Timers.h" #include "utils/StopWatch.h" -#include -#include - -#include - using namespace android; using namespace android::renderscript; @@ -129,7 +124,7 @@ void ScriptC::runForEach(Context *rsc, rsc->mHal.funcs.script.invokeForEach(rsc, this, ain, aout, usr, usrBytes, sc); } -void ScriptC::Invoke(Context *rsc, uint32_t slot, const void *data, uint32_t len) { +void ScriptC::Invoke(Context *rsc, uint32_t slot, const void *data, size_t len) { if (slot >= mHal.info.exportedFunctionCount) { rsc->setError(RS_ERROR_BAD_SCRIPT, "Calling invoke on bad script"); return; @@ -269,7 +264,7 @@ namespace renderscript { RsScript rsi_ScriptCCreate(Context *rsc, const char *resName, size_t resName_length, const char *cacheDir, size_t cacheDir_length, - const char *text, uint32_t text_length) + const char *text, size_t text_length) { ScriptC *s = new ScriptC(rsc); -- cgit v1.2.3-59-g8ed1b