• ericrk's avatar
    Avoid double-counting in GpuChannel memory tracking. · be3028d7
    ericrk authored
    GpuChannel currently calculates current memory usage by iterating over
    all stubs and summing their individual memory usage. This results in
    double counting as a given stub may share its memory tracker with other
    stubs, if they are in a share group.
    
    To avoid double counting, we now iterate over stubs to collect a set of
    unique MemoryTrackers, then sum the memory usage of each unique tracker.
    
    BUG=512535
    
    Review URL: https://codereview.chromium.org/1244843004
    
    Cr-Commit-Position: refs/heads/master@{#339746}
    be3028d7
gpu_memory_manager.h 6.96 KB