summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authoryang.xa.liu <yang.xa.liu@sonymobile.com>2015-12-18 16:40:31 +0800
committerTakahiro Aizawa <takahiro.aizawa@sonymobile.com>2015-12-25 13:51:31 +0900
commit40d73a799732110b75d33faa707412821c680b50 (patch)
tree5ffe1e2cd08496e951eb3ef9294783bb620ee5e0 /rs/java/android/renderscript/RenderScript.java
parente0e81bf407508ec096c752948f8794af5fd480ca (diff)
Make sure NaturalSurfaceLayout is consistent with SurfaceControl
SurfaceControl and NaturalSurfaceLayout will be created in screen-off mode. Screen-on animation also creates NaturalSurfaceLayout. And NaturalSurfaceLayout uses the reference of SurfaceControl. SurfaceControl points to NULL when screen-on process calls destory function, which will not be called in screen-off process. It makes NaturalSurfaceLayout's member points to the SurfaceControl with NULL. Crash occurs by accessing the destroyed SurfaceControl. This CL makes the creation of SurfaceControl and NaturalSurfaceLayout to one-to-one. Change-Id: Ic47ea73dea67d2aba4e3e0766d1353198d7dff1d
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions