diff options
| author | 2009-11-17 17:41:02 -0800 | |
|---|---|---|
| committer | 2009-11-17 17:41:02 -0800 | |
| commit | f630904134a81e9e5edbd7b2bd77e402c180782f (patch) | |
| tree | 3de00c27c532783107db4409e17873a771b7d070 /libs/rs/rsAllocation.cpp | |
| parent | bc9f62920aa7cc436cd1934bc7dfa1e9e70cd96d (diff) | |
| parent | f56f317fb941c354c3a10e9fbf36d194656fa7d4 (diff) | |
am f56f317f: am fa0394c9: Merge change I715333b8 into eclair
Merge commit 'f56f317fb941c354c3a10e9fbf36d194656fa7d4' into eclair-mr2-plus-aosp
* commit 'f56f317fb941c354c3a10e9fbf36d194656fa7d4':
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 16029a6f9c57..408d83f262b6 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); + + +} ///////////////// |