summaryrefslogtreecommitdiffstats
path: root/rsDevice.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2011-04-28 18:26:48 -0700
committerJason Sams <rjsams@android.com>2011-04-28 18:26:48 -0700
commitc975cf4a71b63ccbd20f1f3b3341c5f2e6025b45 (patch)
tree74faddc5fe76f9cc15099f25a54023fee81501ea /rsDevice.cpp
parent5fb1aeb6374f814d72117803682bc141cc6b0895 (diff)
downloadandroid_frameworks_rs-c975cf4a71b63ccbd20f1f3b3341c5f2e6025b45.tar.gz
android_frameworks_rs-c975cf4a71b63ccbd20f1f3b3341c5f2e6025b45.tar.bz2
android_frameworks_rs-c975cf4a71b63ccbd20f1f3b3341c5f2e6025b45.zip
Pipe rsa function though the RS api table.
Change-Id: Ic8a3bef5d337be1d8fc5ca961eec6be4761701c5
Diffstat (limited to 'rsDevice.cpp')
-rw-r--r--rsDevice.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/rsDevice.cpp b/rsDevice.cpp
index d7d03f6a..849fd980 100644
--- a/rsDevice.cpp
+++ b/rsDevice.cpp
@@ -40,17 +40,20 @@ void Device::removeContext(Context *rsc) {
}
}
-RsDevice rsDeviceCreate() {
+namespace android {
+namespace renderscript {
+
+RsDevice rsi_DeviceCreate() {
Device * d = new Device();
return d;
}
-void rsDeviceDestroy(RsDevice dev) {
+void rsi_DeviceDestroy(RsDevice dev) {
Device * d = static_cast<Device *>(dev);
delete d;
}
-void rsDeviceSetConfig(RsDevice dev, RsDeviceParam p, int32_t value) {
+void rsi_DeviceSetConfig(RsDevice dev, RsDeviceParam p, int32_t value) {
Device * d = static_cast<Device *>(dev);
if (p == RS_DEVICE_PARAM_FORCE_SOFTWARE_GL) {
d->mForceSW = value != 0;
@@ -59,3 +62,5 @@ void rsDeviceSetConfig(RsDevice dev, RsDeviceParam p, int32_t value) {
rsAssert(0);
}
+}
+}