commit | cc695fee81613dc92746c1c6bb27f45cfc6ce73e | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Wed Dec 10 10:29:19 2014 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Wed Dec 10 10:29:19 2014 -0800 |
tree | 965f9657a0abd991f114f25369c527bddd98b8f1 | |
parent | 6cfce1b7b4ad546b02823a1a0bbbda2c17b688f5 [diff] |
Gradient shaders: make fPtsToUnit const, pre-cache getType(). This prevents races when calling fPtsToUnit.getType() from multiple threads. This introduces a small amount of redundant code in SkTwoPointRadialGradient, but it's probably optimized together into no extra run-time work. BUG=437511 Review URL: https://codereview.chromium.org/793763003