diff options
| author | Alex Sakhartchouk <alexst@google.com> | 2010-10-08 15:00:05 -0700 |
|---|---|---|
| committer | Alex Sakhartchouk <alexst@google.com> | 2010-10-08 15:00:05 -0700 |
| commit | 700ba38f022208686523ab4280c4fc9f102aa273 (patch) | |
| tree | 0eade1705f416137ad6b62ebe3957be5d646e7bf /rsScript.h | |
| parent | 9bb32e1fd75e864071f18ef10976e8ba9fc0e252 (diff) | |
| download | android_frameworks_rs-700ba38f022208686523ab4280c4fc9f102aa273.tar.gz android_frameworks_rs-700ba38f022208686523ab4280c4fc9f102aa273.tar.bz2 android_frameworks_rs-700ba38f022208686523ab4280c4fc9f102aa273.zip | |
Removing fixed size arrays.
Change-Id: I5c65b29a197013de2517cfb6dbe7abb9e24a688b
Diffstat (limited to 'rsScript.h')
| -rw-r--r-- | rsScript.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -29,8 +29,6 @@ class ProgramFragment; class ProgramRaster; class ProgramStore; -#define MAX_SCRIPT_BANKS 32 - class Script : public ObjectBase { public: @@ -61,10 +59,8 @@ public: }; Enviroment_t mEnviroment; - ObjectBaseRef<Allocation> mSlots[MAX_SCRIPT_BANKS]; - ObjectBaseRef<const Type> mTypes[MAX_SCRIPT_BANKS]; - bool mSlotWritable[MAX_SCRIPT_BANKS]; - + void initSlots(); + void setSlot(uint32_t slot, Allocation *a); void setVar(uint32_t slot, const void *val, uint32_t len); virtual void runForEach(Context *rsc, @@ -76,6 +72,10 @@ public: virtual void Invoke(Context *rsc, uint32_t slot, const void *data, uint32_t len) = 0; virtual void setupScript(Context *rsc) = 0; virtual uint32_t run(Context *) = 0; +protected: + ObjectBaseRef<Allocation> *mSlots; + ObjectBaseRef<const Type> *mTypes; + }; |
