Clean up native page onPreDrawListener when exiting VrShell
Currently the onPreDrawListener for native pages is called even after VrShell exits. A fix is to unregister our onPreDrawListener during VrShell shutdown. VrShell destruction is ordered to remove VrShell from the view hierarchy, then notify VrShell to do clean up. Unfortunately removing VrShell from the view hierarchy prevents cleaning up our onPreDrawListener, so we need a new notification to clean up while still in the view hierarchy. The fix is to remove our OnPreDrawlistener in response to a new cleanup method called while we are still hosted in the view. BUG=743119 Change-Id: Ieacdfb6a08799d4347ea2b268070fd6543f6a2c7 Reviewed-on: https://chromium-review.googlesource.com/580107 Commit-Queue: Bill Orr <billorr@chromium.org> Reviewed-by:Michael Thiessen <mthiesse@chromium.org> Cr-Commit-Position: refs/heads/master@{#488507}
Showing
Please register or sign in to comment