Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5a7b391 authored by Mathias Agopian's avatar Mathias Agopian Committed by Android Git Automerger
Browse files

am a161d37a: am 6a531717: size IMemoryHeap properly for screenshots

* commit 'a161d37a':
  size IMemoryHeap properly for screenshots
parents 74620c55 a161d37a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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