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.h | |
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.h')
-rw-r--r-- | libs/rs/rsContext.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/rs/rsContext.h b/libs/rs/rsContext.h index 50f63df..dee16d6 100644 --- a/libs/rs/rsContext.h +++ b/libs/rs/rsContext.h @@ -22,6 +22,8 @@ #include "rsAllocation.h" #include "rsMesh.h" +#include "rs_hal.h" + #ifndef ANDROID_RS_SERIALIZE #include "rsMutex.h" #include "rsThreadIO.h" @@ -41,6 +43,7 @@ #include "rsgApiStructs.h" #include "rsLocklessFifo.h" + #include <ui/egl/android_natives.h> #endif // ANDROID_RS_SERIALIZE @@ -71,6 +74,13 @@ namespace renderscript { class Context { public: + struct Hal { + void * drv; + + RsdHalFunctions funcs; + }; + Hal mHal; + static Context * createContext(Device *, const RsSurfaceConfig *sc); ~Context(); @@ -86,6 +96,10 @@ public: Script * mScript; }; + //const RsHalComputeFunctions *mHalComputeFuncs; + //const RsHalGraphicsFunctions *mHalGraphicsFuncs; + //RsHal *mHal; + class PushState { public: PushState(Context *); |