summaryrefslogtreecommitdiff
path: root/libs/rs/rsScriptC.h
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2011-03-17 18:19:56 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2011-03-17 18:19:56 -0700
commit1c14bcf76098d9f2ca3037195a74541ab7df56ac (patch)
treed538013cc253a1f2d4a9609bc043108c6a910a99 /libs/rs/rsScriptC.h
parentf0aad65c1024129a4e4e36cccb17c0aec8535e14 (diff)
parente4a06c5fc738bf219f2a495e12a637b2d0871651 (diff)
Merge "Start seperating out RS compute implementation. Create hal layer to seperate from runtime."
Diffstat (limited to 'libs/rs/rsScriptC.h')
-rw-r--r--libs/rs/rsScriptC.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/libs/rs/rsScriptC.h b/libs/rs/rsScriptC.h
index 2c74b5b3ef4e..da5cb2bc00f5 100644
--- a/libs/rs/rsScriptC.h
+++ b/libs/rs/rsScriptC.h
@@ -21,7 +21,6 @@
#include "RenderScriptEnv.h"
-struct BCCOpaqueScript;
// ---------------------------------------------------------------------------
namespace android {
@@ -36,21 +35,6 @@ public:
ScriptC(Context *);
virtual ~ScriptC();
- struct Program_t {
- int mVersionMajor;
- int mVersionMinor;
-
- RunScript_t mRoot;
- VoidFunc_t mInit;
-
- uint32_t * mObjectSlotList;
- uint32_t mObjectSlotCount;
- };
-
-
- Program_t mProgram;
-
- BCCOpaqueScript *mBccScript;
const Allocation *ptrToAllocation(const void *) const;
@@ -69,6 +53,9 @@ public:
virtual RsA3DClassID getClassId() const { return RS_A3D_CLASS_ID_SCRIPT_C; }
static Type *createFromStream(Context *rsc, IStream *stream) { return NULL; }
+ bool runCompiler(Context *rsc, const char *resName, const char *cacheDir,
+ const uint8_t *bitcode, size_t bitcodeLen);
+
protected:
void setupScript(Context *);
void setupGLState(Context *);
@@ -83,8 +70,6 @@ public:
char * mScriptText;
size_t mScriptLen;
- bool runCompiler(Context *rsc, ScriptC *s, const char *resName, const char *cacheDir);
-
struct SymbolTable_t {
const char * mName;
void * mPtr;