summaryrefslogtreecommitdiff
path: root/rsProgram.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2009-08-05 13:57:03 -0700
committerJason Sams <rjsams@android.com>2009-08-05 13:57:03 -0700
commitcfb1d11ce6826fce7241d316d8b7dcab661f63a6 (patch)
treea4dc3f47c27fec9f106bc98c9bb7c4e380bf8ec1 /rsProgram.h
parentf1fbd13b4c0c00cd1f95b5a3a8d0d80dbeb56e41 (diff)
downloadrs-cfb1d11ce6826fce7241d316d8b7dcab661f63a6.tar.gz
Remove useless slot from ProgramVertex. Optimize GL state setup.
Diffstat (limited to 'rsProgram.h')
-rw-r--r--rsProgram.h7
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;
};