Optimized Texture::Update() function.
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}
Showing
This diff is collapsed.
Please register or sign in to comment