Merge "to help debugging [2461567] Home screen redraw messed up"
This commit is contained in:
committed by
Android (Google) Code Review
commit
8c49df4f36
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user