Code cleanup to make formatting consistent
across all the renderscript files.
Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
diff --git a/libs/rs/rsDevice.cpp b/libs/rs/rsDevice.cpp
index a96b114..dd96445 100644
--- a/libs/rs/rsDevice.cpp
+++ b/libs/rs/rsDevice.cpp
@@ -24,24 +24,18 @@
using namespace android;
using namespace android::renderscript;
-Device::Device()
-{
+Device::Device() {
mForceSW = false;
-
}
-Device::~Device()
-{
-
+Device::~Device() {
}
-void Device::addContext(Context *rsc)
-{
+void Device::addContext(Context *rsc) {
mContexts.push(rsc);
}
-void Device::removeContext(Context *rsc)
-{
+void Device::removeContext(Context *rsc) {
for (size_t idx=0; idx < mContexts.size(); idx++) {
if (mContexts[idx] == rsc) {
mContexts.removeAt(idx);
@@ -50,23 +44,17 @@
}
}
-
-
-RsDevice rsDeviceCreate()
-{
+RsDevice rsDeviceCreate() {
Device * d = new Device();
return d;
}
-void rsDeviceDestroy(RsDevice dev)
-{
+void rsDeviceDestroy(RsDevice dev) {
Device * d = static_cast<Device *>(dev);
delete d;
-
}
-void rsDeviceSetConfig(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;