From ad795baecccf239621cbffa0249c8e855296cae6 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 8 Aug 2011 16:02:13 -0700 Subject: [PATCH] improve dumpsys SurfaceFlinger output we now output the handle and size of all buffers of each layer. Change-Id: I8d011ee4ae9199f4198bd07bed770ec3bcf02986 --- libs/gui/SurfaceTexture.cpp | 11 ++++++++--- services/surfaceflinger/Layer.cpp | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/libs/gui/SurfaceTexture.cpp b/libs/gui/SurfaceTexture.cpp index 1a036ee57..b8c3d63a3 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& 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 ); diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 383c0454c..505c843a6 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -533,7 +533,7 @@ void Layer::dump(String8& result, char* buffer, size_t SIZE) const } snprintf(buffer, SIZE, " " - "format=%2d, activeBuffer=[%3ux%3u:%3u,%3u]," + "format=%2d, activeBuffer=[%4ux%4u:%4u,%3X]," " freezeLock=%p, queued-frames=%d\n", mFormat, w0, h0, s0,f0, getFreezeLock().get(), mQueuedFrames);