commit | cbaac9b2e020db5321282bb4397fe9acbc65b891 | [log] [tgz] |
---|---|---|
author | Khushal <khushalsagar@chromium.org> | Tue Jul 10 06:00:45 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jul 10 06:00:45 2018 |
tree | 2ffaffabfbc9a9454fbdcbe4376f26eb0ebea378 | |
parent | 22008ba867efc517e1cd067f627c36cb3e759570 [diff] |
gpu: Drop GrContext cache when application is backgrounded. This matches the behaviour in the renderer which drops the cache once all compositors are invisible. Since we have a shared context across all renderers now, per-renderer visibility doesn't make apply anymore. So we do this when the application is backgrounded. Also this only does it for Android which plumbs background/foreground notifications to the GPU. We need these notifications plumbed for desktop too. R=ericrk@chromium.org Bug: 859419 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel Change-Id: Ife08e37bc77e5fcf81ce5a79361b74c34ff9b7bb Reviewed-on: https://chromium-review.googlesource.com/1123366 Commit-Queue: Khushal <khushalsagar@chromium.org> Reviewed-by: Eric Karl <ericrk@chromium.org> Cr-Commit-Position: refs/heads/master@{#573629}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .