summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2020-09-29 14:29:58 -0700
committerchaviw <chaviw@google.com>2020-09-29 17:26:52 -0700
commite0daa2e7eef5e29a1ad168fc7dd8500c2ae8fec8 (patch)
tree4d3f2eaf59c7fb885b3bf12f0bc97154bf2f80e2 /rs/java/android/renderscript/ProgramStore.java
parentd2cfc483cf52e838a0bc867a065fa4f65d8d07c4 (diff)
Fix some blast issues with SurfaceViews
1. When calling reparentChildren, we want to move children from old view root surface to new view root surface. If blast was enabled, the current code would mvoe children from old view root surface to the layer above the new view root surface. This would cause the SurfaceView to be parented to the wrong layer 2. When the view root surface is changed, VRI is supposed to notify the SurfaceViews so they can call setRelativeLayer to the new view root surface. This wasn't getting called when blast was enabled because the logic to check if it was a new surface is different when using a blast layer. In addition the checking the sequence id that we do now, also check the relayout flag RELAYOUT_RES_SURFACE_CHANGED since that should indicate that the surface was changed. Test: Split screen with Youtube. Change-Id: I1012678b60cec87a702e4d0ffe3e197eda66cff6
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions