diff options
author | Mathias Agopian <mathias@google.com> | 2011-08-08 16:02:13 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-08-08 16:02:13 -0700 |
commit | 0c3367f1bba78250ab9d05e105411ee326f8aee9 (patch) | |
tree | ad16b5ca1eddd92a50e9f105f34472462a2722e9 /libs | |
parent | 1a4a7364571d70f814037389a3ce69c133666407 (diff) | |
download | frameworks_base-0c3367f1bba78250ab9d05e105411ee326f8aee9.zip frameworks_base-0c3367f1bba78250ab9d05e105411ee326f8aee9.tar.gz frameworks_base-0c3367f1bba78250ab9d05e105411ee326f8aee9.tar.bz2 |
improve dumpsys SurfaceFlinger output
we now output the handle and size of all buffers of each layer.
Change-Id: I8d011ee4ae9199f4198bd07bed770ec3bcf02986
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gui/SurfaceTexture.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libs/gui/SurfaceTexture.cpp b/libs/gui/SurfaceTexture.cpp index 1a036ee..b8c3d63 100644 --- a/libs/gui/SurfaceTexture.cpp +++ b/libs/gui/SurfaceTexture.cpp @@ -965,10 +965,15 @@ void SurfaceTexture::dump(String8& result, const char* prefix, for (int i=0 ; i<mBufferCount ; i++) { const BufferSlot& slot(mSlots[i]); + const sp<GraphicBuffer>& buf(slot.mGraphicBuffer); snprintf(buffer, SIZE, - "%s%s[%02d] state=%-8s, crop=[%d,%d,%d,%d], transform=0x%02x, " - "timestamp=%lld\n", - prefix, (i==mCurrentTexture)?">":" ", i, stateName(slot.mBufferState), + "%s%s[%02d] " + "%p [%4ux%4u:%4u,%3X] " + "state=%-8s, crop=[%d,%d,%d,%d], " + "transform=0x%02x, timestamp=%lld\n", + prefix, (i==mCurrentTexture)?">":" ", i, + buf->handle, buf->width, buf->height, buf->stride, buf->format, + stateName(slot.mBufferState), slot.mCrop.left, slot.mCrop.top, slot.mCrop.right, slot.mCrop.bottom, slot.mTransform, slot.mTimestamp ); |