summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorAhan Wu <ahanwu@google.com>2019-10-03 12:36:59 +0800
committerAhan Wu <ahanwu@google.com>2019-10-05 08:27:57 +0800
commit32c6a7c691b0d91085c1ed13fe6f1c473c94b4c8 (patch)
tree708c7d74c1e14f53b02b54e9089f5c57e6fcadde /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parente31854028e94afea9c4e873a8bc01097c12ecbd3 (diff)
Validate wallpaper dimension while generating crop
If dimensions of cropped wallpaper exceed max texture size that GPU can support, it will cause sysui keep crashing because it can not initialize egl with an appropriate surface. Bug: 120847476. Test: Write a custom app to set a 8000x800 bitmap as wallpaper. Test: The cropped file will be 29600x2960 and make sysui keep crashing. Test: After applyed this cl, wallpaper will use fallback. Test: Sysui will not keep crashing any more. Change-Id: Icdc6292191d1e966c52640f4c1a5a154dfba45d3
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions