Merge "Now for .l we generate .c file."
diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp
index 5ee3060..ecc76c8 100644
--- a/cpp/RenderScript.cpp
+++ b/cpp/RenderScript.cpp
@@ -75,6 +75,10 @@
}
}
+bool RS::init(const char * name, uint32_t flags) {
+ return RS::init(name, flags, 0);
+}
+
// This will only open API 19+ libRS, because that's when
// we changed libRS to extern "C" entry points.
static bool loadSO(const char* filename, int targetApi) {
diff --git a/cpp/rsCppStructs.h b/cpp/rsCppStructs.h
index 17886ec..cb91216 100644
--- a/cpp/rsCppStructs.h
+++ b/cpp/rsCppStructs.h
@@ -361,10 +361,19 @@
* @param[in] name Directory name to be used by this context. This should be equivalent to
* Context.getCacheDir().
* @param[in] flags Optional flags for this context.
- * @param[in] targetApi Optional target RS API level. (Default 0: Using the latest SDK/Platform API).
* @return true on success
*/
- bool init(const char * name, uint32_t flags = 0, int targetApi = 0);
+ bool init(const char * name, uint32_t flags = 0);
+
+ /**
+ * Initializes a RenderScript context. A context must be initialized before it can be used.
+ * @param[in] name Directory name to be used by this context. This should be equivalent to
+ * Context.getCacheDir().
+ * @param[in] flags Flags for this context.
+ * @param[in] targetApi Target RS API level.
+ * @return true on success
+ */
+ bool init(const char * name, uint32_t flags, int targetApi);
/**
* Sets the error handler function for this context. This error handler is