diff options
author | Jason Sams <rjsams@android.com> | 2009-10-26 15:19:28 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-10-26 15:20:43 -0700 |
commit | 83f1c63c56ed73e0dfcc4de67bc58a4df5b3fe69 (patch) | |
tree | 3295906c8047a0eab55cfeed2765cf7bacb2ee46 /libs/rs/rsAllocation.h | |
parent | 52c931b7dd0c5f82f409dea85a62c1e6c9e17c35 (diff) | |
download | frameworks_base-83f1c63c56ed73e0dfcc4de67bc58a4df5b3fe69.zip frameworks_base-83f1c63c56ed73e0dfcc4de67bc58a4df5b3fe69.tar.gz frameworks_base-83f1c63c56ed73e0dfcc4de67bc58a4df5b3fe69.tar.bz2 |
Fix dirty state tracking of allocation attached to ProgramVertex objects when being updated while not attached.
Diffstat (limited to 'libs/rs/rsAllocation.h')
-rw-r--r-- | libs/rs/rsAllocation.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/rs/rsAllocation.h b/libs/rs/rsAllocation.h index 1b83267..cf3ea9e 100644 --- a/libs/rs/rsAllocation.h +++ b/libs/rs/rsAllocation.h @@ -23,7 +23,7 @@ namespace android { namespace renderscript { - +class Program; class Allocation : public ObjectBase { @@ -65,11 +65,17 @@ public: void enableGLVertexBuffers() const; void setupGLIndexBuffers() const; + void addProgramToDirty(const Program *); + void removeProgramToDirty(const Program *); protected: + void sendDirty() const; + ObjectBaseRef<const Type> mType; void * mPtr; + Vector<const Program *> mToDirtyList; + // Usage restrictions bool mCpuWrite; bool mCpuRead; |