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 | 6f91cb6af7a8b20e3e001f90406e27f4580a1ccd (patch) | |
| tree | 38b8d6feb2db2e9600205e5851ee69c62bcad585 /libs/rs/rsScript.h | |
| parent | 026284745bb2f84e96fe132071f48a8cd4c1e715 (diff) | |
| download | frameworks_base-6f91cb6af7a8b20e3e001f90406e27f4580a1ccd.zip frameworks_base-6f91cb6af7a8b20e3e001f90406e27f4580a1ccd.tar.gz frameworks_base-6f91cb6af7a8b20e3e001f90406e27f4580a1ccd.tar.bz2 | |
Removing fixed size arrays.
Change-Id: I5c65b29a197013de2517cfb6dbe7abb9e24a688b
Diffstat (limited to 'libs/rs/rsScript.h')
| -rw-r--r-- | libs/rs/rsScript.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/rs/rsScript.h b/libs/rs/rsScript.h index 0a20344..c73bb5e 100644 --- a/libs/rs/rsScript.h +++ b/libs/rs/rsScript.h @@ -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; + }; |
