DescriptionGradient 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
Committed: https://skia.googlesource.com/skia/+/cc695fee81613dc92746c1c6bb27f45cfc6ce73e
Patch Set 1 #
Messages
Total messages: 8 (2 generated)
|