diff options
author | Jason Sams <rjsams@android.com> | 2009-08-05 13:57:03 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-08-05 13:57:03 -0700 |
commit | cfb1d11ce6826fce7241d316d8b7dcab661f63a6 (patch) | |
tree | a4dc3f47c27fec9f106bc98c9bb7c4e380bf8ec1 /rsProgram.h | |
parent | f1fbd13b4c0c00cd1f95b5a3a8d0d80dbeb56e41 (diff) | |
download | rs-cfb1d11ce6826fce7241d316d8b7dcab661f63a6.tar.gz |
Remove useless slot from ProgramVertex. Optimize GL state setup.
Diffstat (limited to 'rsProgram.h')
-rw-r--r-- | rsProgram.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rsProgram.h b/rsProgram.h index 913fdd27..251072fb 100644 --- a/rsProgram.h +++ b/rsProgram.h @@ -33,10 +33,12 @@ public: virtual ~Program(); - void setAllocation(Allocation *); + void bindAllocation(Allocation *); virtual void setupGL(); + void checkUpdatedAllocation(const Allocation *); + protected: // Components not listed in "in" will be passed though // unless overwritten by components in out. @@ -45,8 +47,7 @@ protected: ObjectBaseRef<Allocation> mConstants; - bool mDirty; - + mutable bool mDirty; }; |