diff options
| author | Jason Sams <rjsams@android.com> | 2011-03-16 16:29:28 -0700 |
|---|---|---|
| committer | Jason Sams <rjsams@android.com> | 2011-03-17 16:13:03 -0700 |
| commit | e4a06c5fc738bf219f2a495e12a637b2d0871651 (patch) | |
| tree | a7102d6914154f456a57403ae690d9d2f8979aae /libs/rs/rsContext.cpp | |
| parent | ce06ebfda4bd7c511cef3d98aacf7291a743ea46 (diff) | |
| download | frameworks_base-e4a06c5fc738bf219f2a495e12a637b2d0871651.zip frameworks_base-e4a06c5fc738bf219f2a495e12a637b2d0871651.tar.gz frameworks_base-e4a06c5fc738bf219f2a495e12a637b2d0871651.tar.bz2 | |
Start seperating out RS compute implementation. Create hal
layer to seperate from runtime.
Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
Diffstat (limited to 'libs/rs/rsContext.cpp')
| -rw-r--r-- | libs/rs/rsContext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp index a7c0180..7dc26d2 100644 --- a/libs/rs/rsContext.cpp +++ b/libs/rs/rsContext.cpp @@ -688,6 +688,10 @@ bool Context::initContext(Device *dev, const RsSurfaceConfig *sc) { timerInit(); timerSet(RS_TIMER_INTERNAL); + if (!rsdHalInit(this, 0, 0)) { + return false; + } + int cpu = sysconf(_SC_NPROCESSORS_ONLN); LOGV("RS Launching thread(s), reported CPU count %i", cpu); if (cpu < 2) cpu = 0; |
