summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsAllocation.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2009-11-17 17:26:46 -0800
committerJason Sams <rjsams@android.com>2009-11-17 17:26:46 -0800
commit715333b832fb448c32165c7d97d408a3fa43f7cb (patch)
treeaf4da1824b78ad114d993ce6f523373046e3d514 /libs/rs/rsAllocation.cpp
parentf0166e4dd0907e487531960e36f516406d265b73 (diff)
downloadframeworks_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.cpp18
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);
+
+
+}
/////////////////