summaryrefslogtreecommitdiff
path: root/cpp/RenderScript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/RenderScript.cpp')
-rw-r--r--cpp/RenderScript.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp
index 4ce4c9ba..98ab3807 100644
--- a/cpp/RenderScript.cpp
+++ b/cpp/RenderScript.cpp
@@ -54,18 +54,18 @@ RS::~RS() {
mDev = NULL;
}
-bool RS::init(bool forceCpu) {
- return RS::init(RS_VERSION, forceCpu);
+bool RS::init(bool forceCpu, bool synchronous) {
+ return RS::init(RS_VERSION, forceCpu, synchronous);
}
-bool RS::init(int targetApi, bool forceCpu) {
+bool RS::init(int targetApi, bool forceCpu, bool synchronous) {
mDev = rsDeviceCreate();
if (mDev == 0) {
ALOGE("Device creation failed");
return false;
}
- mContext = rsContextCreate(mDev, 0, targetApi, forceCpu);
+ mContext = rsContextCreate(mDev, 0, targetApi, forceCpu, synchronous);
if (mContext == 0) {
ALOGE("Context creation failed");
return false;