summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorVishnu Nair <vishnun@google.com>2021-09-09 19:56:40 -0700
committerVishnu Nair <vishnun@google.com>2021-09-13 17:21:06 +0000
commit28ab86f0d47aa008258f368fde2506ac0ea108cc (patch)
tree49c5a0f438aa2ee4f177406587ef795648c4beb5 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent6c740e9394f761ba98aa94bd99068051c0045906 (diff)
SurfaceView: Fix SurfaceControl synchronization issues
Hold the surface control lock in PositionUpdateListener callbacks before checking if the SurfaceControl will be null. UI tread might release it after the checks causing crashes. Also fix a case where the ViewRootImpl may be null in the positionChanged callback. Bug: 199261027 Test: run steps in bug Test: go/wm-smoke Change-Id: I5a4cac35fe14356389b29268fddf9703b25c03aa (cherry picked from commit 2cafd8b44d0b4c13b16fdcd2557352ec5496fcc3)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions