diff options
author | Jason Sams <rjsams@android.com> | 2009-09-23 13:57:02 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-09-23 13:57:02 -0700 |
commit | ebfb436a49673693b98469683451bd9ede797557 (patch) | |
tree | 62300ba279079ae34c56dc883430afe4b336f7c6 /libs/rs/rsDevice.cpp | |
parent | 59038ca98b5f258784687523ee3be11b5dfa995d (diff) | |
download | frameworks_base-ebfb436a49673693b98469683451bd9ede797557.zip frameworks_base-ebfb436a49673693b98469683451bd9ede797557.tar.gz frameworks_base-ebfb436a49673693b98469683451bd9ede797557.tar.bz2 |
Add raster object to control point and line params. Add flag to force SW rendering.
Diffstat (limited to 'libs/rs/rsDevice.cpp')
-rw-r--r-- | libs/rs/rsDevice.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/rs/rsDevice.cpp b/libs/rs/rsDevice.cpp index 1b3c41b..b670ad4 100644 --- a/libs/rs/rsDevice.cpp +++ b/libs/rs/rsDevice.cpp @@ -22,6 +22,7 @@ using namespace android::renderscript; Device::Device() { + mForceSW = false; } @@ -60,3 +61,13 @@ void rsDeviceDestroy(RsDevice dev) } +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; + return; + } + rsAssert(0); +} + |