summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorhenry.uh_chen <henry.uh_chen@htc.com>2014-07-18 15:11:18 +0800
committerhenry.uh_chen <henry.uh_chen@htc.com>2014-07-25 18:07:24 +0800
commita1997201903c44ae3de2ea827e2b801775b8984f (patch)
tree61dee6956551507192891a8da9ee76d64b79cda5 /rs/java/android/renderscript/RenderScript.java
parent152d9e61284d31e3b9dfa8dccca3c3c78382035d (diff)
[View] Clear Hardware-Layers before system destroys HardwareRenderer​.
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
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions