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

Skip to content
Commit 0e4c53e4 authored by arthur_hung's avatar arthur_hung Committed by Steve Kondik
Browse files

[HWUI] fix texture cache can't be removed for recycled bitmap

Symptom: recycled bitmap may show in another image view
Root Cause: hwui texture cache didn't remove the old cache that the pixelRef has been released,
            so mmap may return the same address to fit new pixel buffer
            and TextureCache will hit the old texture.

Solution: remove setPixel(NULL, NULL) code to prevent TextureCache::clearGarbage can't find pixelRef key value.

Change-Id: If4d4f4e8e42c7bf1ef9194cc944019e6e8259cdd
parent ca271ea6
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