From 022a43b15bb5de7544c72e073394c6ff5cfc3d47 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Fri, 26 Feb 2010 18:59:23 -0800 Subject: to help debugging [2461567] Home screen redraw messed up log SF's idea of the front buffer in dumpsys. --- libs/surfaceflinger/SurfaceFlinger.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/surfaceflinger/SurfaceFlinger.cpp') 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& 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 buf0(l->getBuffer(0)); sp buf1(l->getBuffer(1)); uint32_t w0=0, h0=0, s0=0; -- cgit v1.2.3-59-g8ed1b