summaryrefslogtreecommitdiff
path: root/rsContext.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2011-03-16 16:29:28 -0700
committerJason Sams <rjsams@android.com>2011-03-17 16:13:03 -0700
commitbad807405b2b9764372af1ad24bcfd4fb1f33d8e (patch)
treebd23d576a51ee4f7b18464d84643a1572f8b1d52 /rsContext.h
parent1809bde133e0d66f06cea65887d9ceb3c70f8b95 (diff)
downloadrs-bad807405b2b9764372af1ad24bcfd4fb1f33d8e.tar.gz
Start seperating out RS compute implementation. Create hal
layer to seperate from runtime. Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
Diffstat (limited to 'rsContext.h')
-rw-r--r--rsContext.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/rsContext.h b/rsContext.h
index 50f63df4..dee16d6e 100644
--- a/rsContext.h
+++ b/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 *);