Merge "to help debugging [2461567] Home screen redraw messed up"

This commit is contained in:
Mathias Agopian
2010-02-26 19:01:06 -08:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 0 deletions

View File

@@ -78,6 +78,8 @@ public:
inline const sp<FreezeLock>& getFreezeLock() const { return mFreezeLock; }
// only for debugging
inline PixelFormat pixelFormat() const { return mFormat; }
// only for debugging
inline int getFrontBufferIndex() const { return mFrontBufferIndex; }
private:
inline sp<GraphicBuffer> getFrontBufferLocked() {

View File

@@ -1519,6 +1519,10 @@ status_t SurfaceFlinger::dump(int fd, const Vector<String16>& args)
if (l != 0) {
SharedBufferStack::Statistics stats = l->lcblk->getStats();
result.append( l->lcblk->dump(" ") );
snprintf(buffer, SIZE,
" front-index=%u\n", l->getFrontBufferIndex());
result.append(buffer);
sp<const GraphicBuffer> buf0(l->getBuffer(0));
sp<const GraphicBuffer> buf1(l->getBuffer(1));
uint32_t w0=0, h0=0, s0=0;