diff options
| author | Tim Murray <timmurray@google.com> | 2012-11-29 14:37:59 -0800 |
|---|---|---|
| committer | Tim Murray <timmurray@google.com> | 2012-12-04 18:32:49 -0800 |
| commit | 4d252d6e807b89764dad123ac845df298c52ca97 (patch) | |
| tree | 7b07cab9e7278b108b9ab15663221bd18da00f8e /cpp/RenderScript.cpp | |
| parent | 2e1a94df812f0caa42ff24eaefeba8f90fbdf1ac (diff) | |
enable synchronous mode (functional)
Change-Id: I613610013e7e4d1623620ab94d2d25d8a1bd82b3
Bug: 5972398
Diffstat (limited to 'cpp/RenderScript.cpp')
| -rw-r--r-- | cpp/RenderScript.cpp | 8 |
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; |
