Do not delete the media ContextProvider inside the lost context callback
Currently the GpuVideoAcceleratorFactoriesImpl will check for context loss every time it tries to use the GL context, and destroy it immediately if it sees a loss. This is problematic if the ContextProvider is still on the callstack, which it is if we're inside the context loss callback. Instead, leave the ContextProvider alive until the GpuVideoAcceleratorFactoriesImpl stops being used. R=liberato@chromium.org Bug: 849131 Change-Id: I8ec66671b4bbf5d426cb5fb184653a5863de9fd9 Reviewed-on: https://chromium-review.googlesource.com/1104777 Commit-Queue: danakj <danakj@chromium.org> Reviewed-by:Frank Liberato <liberato@chromium.org> Reviewed-by:
Antoine Labour <piman@chromium.org> Cr-Commit-Position: refs/heads/master@{#568256}
Showing
Please register or sign in to comment