summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2020-06-10 13:43:22 -0700
committerchaviw <chaviw@google.com>2020-06-10 16:36:53 -0700
commita493c9a4286bf702af785d474c3f96080c4eb36b (patch)
treece4ab3678c2fb1083693a9e92ad885d88f4d2bc9 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent3917b729a66d87513714729e60f3cddd80f506e8 (diff)
Ensure detached children aren't parented to new SurfaceControl
The previous CL called preserveSurfaces when detachChildren were called to ensure a new SurfaceControl would get created. However, the check for when reparenting old children to the new surface was incorrect so children from the destroying surface would become children of the new surface. This was because mChildrenDetached was set to false when the new surface was created. The children were reparented after the new surface was created so mChildrenDetached would always be false. Instead, add a flag to the WindowSurfaceController when children are detached. This way we know which WindowSurfaceController has detached children and shouldn't reparent its children to the new surface. Test: Close and open apps with SV quickly. Child surfaces are cleaned up Fixes: 155694905 Bug: 157439199 Change-Id: I5f20f159bdc86c90e972400cd356df771d926fcc
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions