• dyen's avatar
    Optimized Texture::Update() function. · ecc73c25
    dyen authored
    Texture::Update() was doing a lot of calculations that did not change
    much per frame. Some of the calculations such as whether or not has
    non-power of 2 dimensions has been moved to when the texture
    levels are set since they do not change. Others are only recalculated
    when a dirty bit is set.
    
    BUG=420152
    TEST=trybots
    
    Review URL: https://codereview.chromium.org/633773002
    
    Cr-Commit-Position: refs/heads/master@{#299181}
    ecc73c25
texture_manager.h 25.4 KB