diff options
author | Mathias Agopian <mathias@google.com> | 2009-05-29 14:55:06 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-05-29 14:55:06 -0700 |
commit | 6d892b60dde12aff270df1b3d2809336c3fc1265 (patch) | |
tree | ae0c38b38fd6a284f27f9b4d0cc1352c96b4a690 | |
parent | 004cb73a152327160614318fef0e1800ec91346d (diff) | |
download | frameworks_base-6d892b60dde12aff270df1b3d2809336c3fc1265.zip frameworks_base-6d892b60dde12aff270df1b3d2809336c3fc1265.tar.gz frameworks_base-6d892b60dde12aff270df1b3d2809336c3fc1265.tar.bz2 |
log the geomerty of surfaces causing an out of memory in SurfaceFlinger.
-rw-r--r-- | libs/surfaceflinger/LayerBitmap.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBitmap.cpp b/libs/surfaceflinger/LayerBitmap.cpp index e844350..397ddc8 100644 --- a/libs/surfaceflinger/LayerBitmap.cpp +++ b/libs/surfaceflinger/LayerBitmap.cpp @@ -114,7 +114,9 @@ status_t LayerBitmap::setBits(uint32_t w, uint32_t h, uint32_t alignment, } if (mBitsMemory==0 || mSurface.data==0) { - LOGE("not enough memory for layer bitmap size=%u", size); + LOGE("not enough memory for layer bitmap " + "size=%u (w=%d, h=%d, stride=%d, format=%d)", + size, int(w), int(h), int(stride), int(format)); allocator->dump("LayerBitmap"); mSurface.data = 0; mSize = -1U; |