core/java/android/view/ViewRootImpl.java
100644 → 100755
+3
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Symptom: Sometimes HardwareLayer display is corrupted. Root Cause: In some cases, ViewRootImpl destroys HardwareRenderer without clearing HardwareLayers in the view hirarchy. If the system trims memory fully and kill the glContext at the same time, HardwareLayer may corrupt. Solution: Clear Hardware-Layers before system destroys HardwareRenderer. Reproduce steps: Modify the cache's trim memory mechanism to make it easier to trim fully, HardwareLayers implemented in app will easily be corrupted. Modification of the cache is not required but make it easier to reproduce. Change-Id: If57c802cdacf8dc37cbbcc199e74f9482834f981