summaryrefslogtreecommitdiff
path: root/cpp/RenderScript.cpp
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2014-01-15 15:11:09 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2014-01-15 15:11:09 -0800
commit9ee891e3024399c0d0ea0d44d2997cdf357f2d30 (patch)
tree3c1ea4f5f1404530429e185274f55edf064a52cc /cpp/RenderScript.cpp
parentbd8c8fa0181e1980255fa51c0778a299c7c91022 (diff)
parentf171923ba15f9ed2c55e42ae9e60a522e890018d (diff)
am f171923b: Merge "Fix NDK API on old devices."
* commit 'f171923ba15f9ed2c55e42ae9e60a522e890018d': Fix NDK API on old devices.
Diffstat (limited to 'cpp/RenderScript.cpp')
-rw-r--r--cpp/RenderScript.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp
index 3a75ffe0..04f1e88e 100644
--- a/cpp/RenderScript.cpp
+++ b/cpp/RenderScript.cpp
@@ -23,11 +23,15 @@
#include "rsCppInternal.h"
#include <dlfcn.h>
+#include <unistd.h>
-#if !defined(RS_SERVER) && defined(HAVE_ANDROID_OS)
+#if !defined(RS_SERVER) && !defined(RS_COMPATIBILITY_LIB) && defined(HAVE_ANDROID_OS)
#include <cutils/properties.h>
+#else
+#include "rsCompatibilityLib.h"
#endif
+
using namespace android;
using namespace RSC;
@@ -473,7 +477,6 @@ bool RS::init(std::string &name, int targetApi, uint32_t flags) {
}
mCacheDir = name;
- mCacheDir += "/com.android.renderscript.cache/";
mDev = RS::dispatch->DeviceCreate();
if (mDev == 0) {