diff options
| author | 2009-09-16 15:04:38 -0700 | |
|---|---|---|
| committer | 2009-09-16 15:04:38 -0700 | |
| commit | be2e84193f709419634de4cc3ba0e67acf6976f3 (patch) | |
| tree | 5c940265dd0a42ef6072c03ec463a6961a6fb4d3 /libs/rs/rsScript.h | |
| parent | 91a5d831d6e2311d4129cb6086a67ab66874992c (diff) | |
Implement renderscript Invokables.
Diffstat (limited to 'libs/rs/rsScript.h')
| -rw-r--r-- | libs/rs/rsScript.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/rs/rsScript.h b/libs/rs/rsScript.h index 60f83a63c696..e40531ede37e 100644 --- a/libs/rs/rsScript.h +++ b/libs/rs/rsScript.h @@ -34,6 +34,7 @@ class ProgramFragmentStore; class Script : public ObjectBase { public: + typedef void (* InvokeFunc_t)(void); Script(); virtual ~Script(); @@ -52,17 +53,22 @@ public: ObjectBaseRef<ProgramFragment> mFragment; //ObjectBaseRef<ProgramRaster> mRaster; ObjectBaseRef<ProgramFragmentStore> mFragmentStore; - + InvokeFunc_t mInvokables[MAX_SCRIPT_BANKS]; + const char * mScriptText; + uint32_t mScriptTextLength; }; Enviroment_t mEnviroment; uint32_t mCounstantBufferCount; + ObjectBaseRef<Allocation> mSlots[MAX_SCRIPT_BANKS]; ObjectBaseRef<const Type> mTypes[MAX_SCRIPT_BANKS]; String8 mSlotNames[MAX_SCRIPT_BANKS]; bool mSlotWritable[MAX_SCRIPT_BANKS]; + + virtual bool run(Context *, uint32_t launchID) = 0; }; |