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

Commit 332540d2 authored by Eric Miao's avatar Eric Miao
Browse files

Keep source bitmap id for received ashmem bitmaps

Bug: 369619160
Flag: NONE - private API for debugging

When transfering bitmap mId from sending side to receiving side,
a same bitmap could be sent multiple times, which ends up with
multiple bitmaps on the receiving end having the same mId.

To keep mId unique while not losing the track of where the bitmap
was originated from, we keep the source mId in a separate source
field, and Bitmap.getSource()/Bitmap.setSource() to retrieve and
specify the source bitmap.

Change-Id: Ic85a0e8324fc0b1bf03b5ed8c1358b8449c00d49
parent 16d79829
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment