diff options
author | 2018-01-03 15:48:52 -0500 | |
---|---|---|
committer | 2018-01-03 20:56:52 +0000 | |
commit | 43fc82c9a047ab84c6a7a816decc15bda2a6cada (patch) | |
tree | eb8194f54d7775fd7e6a5d6106228d71aa2b1d5f /site/dev/design | |
parent | c5166a9dcbf2eeb95cb8e2918271132aa34bf5cd (diff) |
Update 2pt conical document
No-Try: true
Docs-Preview: https://skia.org/?cl=90403
Bug: skia:
Change-Id: Ifa078bde8e46bfc6f71ba17706a12517756b2fc4
Reviewed-on: https://skia-review.googlesource.com/90403
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Yuqian Li <liyuqian@google.com>
Diffstat (limited to 'site/dev/design')
-rw-r--r-- | site/dev/design/conical/index.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/site/dev/design/conical/index.md b/site/dev/design/conical/index.md index 4215b2efb0..0ad733e786 100644 --- a/site/dev/design/conical/index.md +++ b/site/dev/design/conical/index.md @@ -11,9 +11,13 @@ MathJax.Hub.Config({ <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML'></script> +(Please refresh the page if you see a lot of dollars instead of math symbols.) + We present a fast shading algorithm (compared to bruteforcely solving the quadratic equation of gradient $t$) for computing the two-point conical gradient (i.e., createRadialGradient in [spec](https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-createradialgradient)). +It reduced the number of multiplications per pixel from ~10 downto 3, and brought a speedup up to +26% in our nanobenches. This document has 3 parts: |