Only purge unlocked Skia resources when CC goes idle
This avoids clearing some longer-lived Skia caches, hopefully avoiding an UMA latency regression we experienced when the idle clearing was initially added. This re-land uses a more direct Skia API, hopefully avoiding the flakiness seen in issue 805575. Note for sheriffs: We expect a small regression in measured memory. This is intentional, and comes with an improvement to input latency. This regression shouldn't have a large impact on real-world scenarios, as we are preventing the clearing of a cache that will be immediately re-created on any page raster. TBR=brettw@chromium.org for test-only DEPS change (already ran by bsalomon@ in previous patch, this is re-land+updates) Bug: 664181, 805575 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel Change-Id: Id4c9a091a543c31f928e0214558695de81a30e9d Reviewed-on: https://chromium-review.googlesource.com/1123169 Commit-Queue: Eric Karl <ericrk@chromium.org> Reviewed-by:Khushal <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/master@{#572391}
Showing
Please register or sign in to comment