diff options
Diffstat (limited to 'cpp/ScriptC.cpp')
| -rw-r--r-- | cpp/ScriptC.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cpp/ScriptC.cpp b/cpp/ScriptC.cpp index 39b17d47..3a1909d7 100644 --- a/cpp/ScriptC.cpp +++ b/cpp/ScriptC.cpp @@ -14,22 +14,20 @@ * limitations under the License. */ -#define LOG_TAG "libRS_cpp" - #include <utils/Log.h> #include <malloc.h> -#include "ScriptC.h" +#include "RenderScript.h" using namespace android; using namespace renderscriptCpp; -ScriptC::ScriptC(RenderScript *rs, +ScriptC::ScriptC(sp<RS> rs, const void *codeTxt, size_t codeLength, const char *cachedName, size_t cachedNameLength, const char *cacheDir, size_t cacheDirLength) : Script(NULL, rs) { - mID = rsScriptCCreate(rs->mContext, cachedName, cachedNameLength, + mID = rsScriptCCreate(rs->getContext(), cachedName, cachedNameLength, cacheDir, cacheDirLength, (const char *)codeTxt, codeLength); } |
