• ericrk's avatar
    cc::ResourcePool - Re-use larger resources for smaller requests · 830cb220
    ericrk authored
    Allows cc::ResourcePool to re-use larger resources to fulfill a smaller
    request. This avoids expensive allocations, and is especially useful in
    cases where layer sizes are changing due to animation.
    
    Also extends the timeout for resource expiration from 1s to 5s, which
    will also cut down on resource allocations.
    
    CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
    
    Review-Url: https://codereview.chromium.org/2726263003
    Cr-Commit-Position: refs/heads/master@{#456202}
    830cb220
resource_pool_unittest.cc 17.6 KB