diff options
author | mtklein <mtklein@chromium.org> | 2014-12-10 10:29:19 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-10 10:29:19 -0800 |
commit | cc695fee81613dc92746c1c6bb27f45cfc6ce73e (patch) | |
tree | 965f9657a0abd991f114f25369c527bddd98b8f1 /tools/sk_tool_utils_flags.h | |
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
Diffstat (limited to 'tools/sk_tool_utils_flags.h')
0 files changed, 0 insertions, 0 deletions