summaryrefslogtreecommitdiffstats
path: root/rsDevice.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2011-05-18 17:36:02 -0700
committerJason Sams <rjsams@android.com>2011-05-18 17:40:34 -0700
commit789ca83c794cb7196c9bac97d39eaf1f7947af2a (patch)
tree5a44cc154b94e814d8f3efe8e4c69a35b7e5cdc7 /rsDevice.cpp
parent7257c7ee4b66f00c43d9235f3ac600061ae79968 (diff)
downloadandroid_frameworks_rs-789ca83c794cb7196c9bac97d39eaf1f7947af2a.tar.gz
android_frameworks_rs-789ca83c794cb7196c9bac97d39eaf1f7947af2a.tar.bz2
android_frameworks_rs-789ca83c794cb7196c9bac97d39eaf1f7947af2a.zip
Move context and device creation out of the spec file.
Change-Id: I79470d4fb9317bcad9d68921ce0c414aa133f3cb
Diffstat (limited to 'rsDevice.cpp')
-rw-r--r--rsDevice.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/rsDevice.cpp b/rsDevice.cpp
index 849fd980..d7d03f6a 100644
--- a/rsDevice.cpp
+++ b/rsDevice.cpp
@@ -40,20 +40,17 @@ void Device::removeContext(Context *rsc) {
}
}
-namespace android {
-namespace renderscript {
-
-RsDevice rsi_DeviceCreate() {
+RsDevice rsDeviceCreate() {
Device * d = new Device();
return d;
}
-void rsi_DeviceDestroy(RsDevice dev) {
+void rsDeviceDestroy(RsDevice dev) {
Device * d = static_cast<Device *>(dev);
delete d;
}
-void rsi_DeviceSetConfig(RsDevice dev, RsDeviceParam p, int32_t value) {
+void rsDeviceSetConfig(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;
@@ -62,5 +59,3 @@ void rsi_DeviceSetConfig(RsDevice dev, RsDeviceParam p, int32_t value) {
rsAssert(0);
}
-}
-}