am 6a531717
: size IMemoryHeap properly for screenshots
* commit '6a531717cddf1d30be0946884d21c27e5b6b390c': size IMemoryHeap properly for screenshots
This commit is contained in:
commit
a161d37a81
@ -2787,7 +2787,7 @@ status_t SurfaceFlinger::captureScreenImplLocked(
|
||||
sp<GraphicBuffer> buf(consumer->getCurrentBuffer());
|
||||
sw = buf->getWidth();
|
||||
sh = buf->getHeight();
|
||||
size_t size = buf->getStride() * sh * 4;
|
||||
size_t size = sw * sh * 4;
|
||||
|
||||
// allocate shared memory large enough to hold the
|
||||
// screen capture
|
||||
|
Loading…
Reference in New Issue
Block a user