• Eric Karl's avatar
    Limit GPU Image Decode Cache Working Set by Count · 8482b53d
    Eric Karl authored
    Currently we limit GPU Image Decode Cache working set by bytes, but
    this allows the cache to be filled with thousands of working set
    entries if sufficiently small. This ends up causing negative
    performance and memory spikes vs flushing more regularly.
    
    This change adds a 256 item limit to the GPU IDC working set, avoiding
    the worst of these issues.
    
    Bug: 870455
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: I0e6f27d3cb070ea3c29940ce9aad61224a3120cf
    Reviewed-on: https://chromium-review.googlesource.com/1179378
    Commit-Queue: Eric Karl <ericrk@chromium.org>
    Reviewed-by: default avatarKhushal <khushalsagar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#584286}
    8482b53d
gpu_image_decode_cache.cc 76.8 KB