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 | 9bee51c42eb8c3daffe7d6fa483edbb1689b94d2 (patch) | |
| tree | ed0f12b149a98299f205173a5563c42599426fe3 /libs/rs/rsProgram.h | |
| parent | 9d1a3149f35b716caeda89dad53c0d8c45c6ca4b (diff) | |
| download | frameworks_base-9bee51c42eb8c3daffe7d6fa483edbb1689b94d2.zip frameworks_base-9bee51c42eb8c3daffe7d6fa483edbb1689b94d2.tar.gz frameworks_base-9bee51c42eb8c3daffe7d6fa483edbb1689b94d2.tar.bz2 | |
Remove useless slot from ProgramVertex. Optimize GL state setup.
Diffstat (limited to 'libs/rs/rsProgram.h')
| -rw-r--r-- | libs/rs/rsProgram.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/rs/rsProgram.h b/libs/rs/rsProgram.h index 913fdd2..251072f 100644 --- a/libs/rs/rsProgram.h +++ b/libs/rs/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; }; |
