(fill)
| 927 | // Wrappers for _ctx.fill() and _ctx.stroke(), only calling them when necessary. |
| 928 | |
| 929 | function _ctx_fill(fill) { |
| 930 | if (fill && (fill.a > 0 || fill.clr1)) { |
| 931 | // Ignore transparent colors. |
| 932 | // Avoid switching _ctx.fillStyle() - we can gain up to 5fps: |
| 933 | var f = fill._get(); |
| 934 | if (_ctx.state._fill != f) { |
| 935 | _ctx.fillStyle = _ctx.state._fill = f; |
| 936 | } |
| 937 | _ctx.fill(); |
| 938 | } |
| 939 | } |
| 940 | |
| 941 | function _ctx_stroke(stroke, strokewidth, strokestyle, linecap) { |
| 942 | if (stroke && stroke.a > 0 && strokewidth > 0) { |
no outgoing calls
no test coverage detected
searching dependent graphs…