am 6a531717: size IMemoryHeap properly for screenshots

* commit '6a531717cddf1d30be0946884d21c27e5b6b390c':
  size IMemoryHeap properly for screenshots
This commit is contained in:
Mathias Agopian 2013-03-13 22:26:46 +00:00 committed by Android Git Automerger
commit a161d37a81

View File

@ -2787,7 +2787,7 @@ status_t SurfaceFlinger::captureScreenImplLocked(
sp<GraphicBuffer> buf(consumer->getCurrentBuffer()); sp<GraphicBuffer> buf(consumer->getCurrentBuffer());
sw = buf->getWidth(); sw = buf->getWidth();
sh = buf->getHeight(); sh = buf->getHeight();
size_t size = buf->getStride() * sh * 4; size_t size = sw * sh * 4;
// allocate shared memory large enough to hold the // allocate shared memory large enough to hold the
// screen capture // screen capture