summaryrefslogtreecommitdiff
path: root/libs/surfaceflinger/LayerBitmap.cpp
diff options
context:
space:
mode:
author Android (Google) Code Review <android-gerrit@google.com> 2009-05-29 14:55:48 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2009-05-29 14:55:48 -0700
commit489d3953f01b3d71774dd76fc2dbe985bb0dfa06 (patch)
treeb6e64e28834fa7911fd87ee97fd3c30569028cf4 /libs/surfaceflinger/LayerBitmap.cpp
parent811eeff5778a3990a5488e6a31ab330a4b1e5328 (diff)
parent3c4d8c83da33bdd740afd683af42eca1a6bd6500 (diff)
Merge change 2747 into donut
* changes: log the geomerty of surfaces causing an out of memory in SurfaceFlinger.
Diffstat (limited to 'libs/surfaceflinger/LayerBitmap.cpp')
-rw-r--r--libs/surfaceflinger/LayerBitmap.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBitmap.cpp b/libs/surfaceflinger/LayerBitmap.cpp
index e84435088a..397ddc82e1 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;