summaryrefslogtreecommitdiff
path: root/cpp/RenderScript.cpp
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2012-11-29 14:37:59 -0800
committerTim Murray <timmurray@google.com>2012-12-04 18:32:49 -0800
commit4d252d6e807b89764dad123ac845df298c52ca97 (patch)
tree7b07cab9e7278b108b9ab15663221bd18da00f8e /cpp/RenderScript.cpp
parent2e1a94df812f0caa42ff24eaefeba8f90fbdf1ac (diff)
enable synchronous mode (functional)
Change-Id: I613610013e7e4d1623620ab94d2d25d8a1bd82b3 Bug: 5972398
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;