diff options
| author | 2011-08-08 20:13:16 -0700 | |
|---|---|---|
| committer | 2011-08-08 20:13:16 -0700 | |
| commit | af08d8ab6dd2188544ca4f038f33c1c4ed8447cf (patch) | |
| tree | 36dc752815fac6675068344057f9383954051e8e /libs/gui/SurfaceTexture.cpp | |
| parent | c109b61f49817bbc2f4551f3dd4356b8785aa127 (diff) | |
| parent | ad795baecccf239621cbffa0249c8e855296cae6 (diff) | |
Merge "improve dumpsys SurfaceFlinger output"
Diffstat (limited to 'libs/gui/SurfaceTexture.cpp')
| -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 07789b31e1..be71c946ba 100644 --- a/libs/gui/SurfaceTexture.cpp +++ b/libs/gui/SurfaceTexture.cpp @@ -981,10 +981,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 ); |