Chromium Code Reviews
Descriptionuse Sk4f to increase radial gradient precision but same or better speed
need to land SK_SUPPORT_LEGACY_RADIAL_GRADIENT_SQRT in chrome first
For benchmarks, I timed two cases: unclamped and clamped. The new code happens to treat both as clamped.
On SSE, the new code is faster (and prettier):
BEFORE 383/670
AFTER 276/276
On neon, the new code is slower (but still prettier)
BEFORE 1.44/2.02
AFTER 2.38/2.38
Hoping to find a way to speed things up on neon, to make the decision to take this easier.
BUG=skia:427508
Patch Set 1 #Patch Set 2 : simplify stepping for more speed, experiment with rsqrt #Patch Set 3 : #
Messages
Total messages: 9 (3 generated)
|
||||||||||||||||||||||||||||