Add a delay to clear GL context when app is backgrounded
A common behavior on Android is for the user to press home or recents button accidently and get back to the app. This behavior would cause Chrome to clear the contexts and recreate which is a waste of time. So, add a 5 second delay before clearing the context. As a side effect, this delay also considerably lowers the risk of the renderers initializing the GPU command buffer after clearing since they usually receive the "not-visible" message within 5 seconds. BUG=725303 Change-Id: I7d2655c75b66cf073b82c270baa3f1f3b27b3a8a Reviewed-on: https://chromium-review.googlesource.com/571294 Commit-Queue: Siddhartha S <ssid@chromium.org> Reviewed-by:Maria Khomenko <mariakhomenko@chromium.org> Reviewed-by:
Eric Karl <ericrk@chromium.org> Reviewed-by:
Kenneth Russell <kbr@chromium.org> Cr-Commit-Position: refs/heads/master@{#487539}
Showing
Please register or sign in to comment