Make rsContext be able to have info about the path of native libs
for 64bit Renderscript compat lib.
- Native lib path stored in Java and queried from JNI.
- Then set to Context during context creation.
Change-Id: I3c997cf849efb7b9a0b0ac35d5b62289d70e7434
diff --git a/rsContext.cpp b/rsContext.cpp
index b63d01d..7243118 100644
--- a/rsContext.cpp
+++ b/rsContext.cpp
@@ -983,6 +983,13 @@
return rsc;
}
+#ifdef RS_COMPATIBILITY_LIB
+extern "C" void rsaContextSetNativeLibDir(RsContext con, char *libDir, size_t length) {
+ Context *rsc = static_cast<Context *>(con);
+ rsc->setNativeLibDir(libDir, length);
+}
+#endif
+
#ifndef RS_COMPATIBILITY_LIB
RsContext rsContextCreateGL(RsDevice vdev, uint32_t version,
uint32_t sdkVersion, RsSurfaceConfig sc,