diff options
| author | Jason Sams <rjsams@android.com> | 2009-11-17 17:26:46 -0800 |
|---|---|---|
| committer | Jason Sams <rjsams@android.com> | 2009-11-17 17:26:46 -0800 |
| commit | 715333b832fb448c32165c7d97d408a3fa43f7cb (patch) | |
| tree | af4da1824b78ad114d993ce6f523373046e3d514 /libs/rs/rsAllocation.cpp | |
| parent | f0166e4dd0907e487531960e36f516406d265b73 (diff) | |
| download | frameworks_base-715333b832fb448c32165c7d97d408a3fa43f7cb.zip frameworks_base-715333b832fb448c32165c7d97d408a3fa43f7cb.tar.gz frameworks_base-715333b832fb448c32165c7d97d408a3fa43f7cb.tar.bz2 | |
Add support for dumping RS objects to aid in debugging of white blocks bug.
Diffstat (limited to 'libs/rs/rsAllocation.cpp')
| -rw-r--r-- | libs/rs/rsAllocation.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/rs/rsAllocation.cpp b/libs/rs/rsAllocation.cpp index 16029a6..408d83f 100644 --- a/libs/rs/rsAllocation.cpp +++ b/libs/rs/rsAllocation.cpp @@ -190,6 +190,24 @@ void Allocation::subData(uint32_t xoff, uint32_t yoff, uint32_t zoff, { } +void Allocation::dumpLOGV(const char *prefix) const +{ + ObjectBase::dumpLOGV(prefix); + + String8 s(prefix); + s.append(" type "); + if (mType.get()) { + mType->dumpLOGV(s.string()); + } + + LOGV("%s allocation ptr=%p mCpuWrite=%i, mCpuRead=%i, mGpuWrite=%i, mGpuRead=%i", + prefix, mPtr, mCpuWrite, mCpuRead, mGpuWrite, mGpuRead); + + LOGV("%s allocation mIsTexture=%i mIsTextureID=%i, mIsVertexBuffer=%i, mBufferID=%i", + prefix, mIsTexture, mTextureID, mIsVertexBuffer, mBufferID); + + +} ///////////////// |
