diff options
| author | 2010-02-26 19:01:06 -0800 | |
|---|---|---|
| committer | 2010-02-26 19:01:06 -0800 | |
| commit | 8c49df4f36bee2878ab0ff7dc99dff60dc7354fb (patch) | |
| tree | fbd3cff4ca3fd656df76ad57b77e6c44ab87f610 | |
| parent | 4e2b5cbad5d9978b983044f31a567312d4ba511a (diff) | |
| parent | 022a43b15bb5de7544c72e073394c6ff5cfc3d47 (diff) | |
Merge "to help debugging [2461567] Home screen redraw messed up"
| -rw-r--r-- | libs/surfaceflinger/Layer.h | 2 | ||||
| -rw-r--r-- | libs/surfaceflinger/SurfaceFlinger.cpp | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libs/surfaceflinger/Layer.h b/libs/surfaceflinger/Layer.h index 1310ecc9c19f..743afb4c4716 100644 --- a/libs/surfaceflinger/Layer.h +++ b/libs/surfaceflinger/Layer.h @@ -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() { diff --git a/libs/surfaceflinger/SurfaceFlinger.cpp b/libs/surfaceflinger/SurfaceFlinger.cpp index b408779fb0a1..4555b3c29b6e 100644 --- a/libs/surfaceflinger/SurfaceFlinger.cpp +++ b/libs/surfaceflinger/SurfaceFlinger.cpp @@ -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; |