summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2018-04-10 17:49:30 +0200
committerJorim Jaggi <jjaggi@google.com>2018-04-10 17:58:34 +0200
commit5057590fe969316ebfef5f5cae40a4b524a06a55 (patch)
treef0a2a805f7fb95a010a6b9fd834365574741e8df /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent082147cfe180e7e0117adaf3b1dfa84d7f01570e (diff)
Fix issue with leaked preserved surface
Imagine a non-app-window going through the following sequence: 1. Window starts out visible 2. Client sets to GONE 3. Exit animation starts. 4. Client sets to VISIBLE 5. Before it can redraw, Client sets to GONE again In that case we preserve the surface because we need to client to force-retrieve a new surface. However, we never mark the surface as to be destroyed because we never enter the path in WSA.prepareSurfaceLocked that would mark the preserved surface to be destroyed, which is only the case when the client redraws. Fix this by also marking it as to be destroyed when the surface gets hidden. Test: Above flow. See bug for test app. Change-Id: Ic554ae787e7d2130b93b993fadf8c302913ed6ee Fixes: 77633603
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions