Lines Matching refs:cap

102             style(paint->getStyle()), cap(paint->getStrokeCap()), isAA(paint->isAntiAlias()),
124 SkPaint::Cap cap;
150 * Returns the number of cap divisions beyond the minimum 2 (kButt_Cap/kSquareCap will return 0)
154 if (cap == SkPaint::kRound_Cap) {
249 if (paintInfo.cap == SkPaint::kSquare_Cap) {
399 * Stores geometry for a single, AA-perimeter (potentially rounded) cap
422 if (paintInfo.cap != SkPaint::kRound_Cap) {
423 // if the cap is square or butt, the inside primary cap vertices will be inset in two
428 // determine referencePoint, the center point for the 4 primary cap vertices
431 if (paintInfo.cap == SkPaint::kSquare_Cap) {
432 // To account for square cap, move the primary cap vertices (that create the AA edge) by the
447 bool isRound = paintInfo.cap == SkPaint::kRound_Cap;
489 capPerimIndex = 2; // start writing the rest of the round cap at index 2
528 b) 2, 2 * roundDivOff | First half of begin cap's perimeter
532 a) 4 | End cap's
537 a) 6 | Begin cap's perimeter
538 b) 2, 2*(rD - rDO + 1), | Last half of begin cap's perimeter
544 b) 2, roundDivs | (and end cap fill, for round)
547 * rows starting with 'a)' denote the Butt or Square cap vertex use, 'b)' denote Round
552 round cap's shape, and is at least two. This will increase with cap size to sufficiently
553 define the cap's level of tessellation.
555 * 'roundDivOffset' or 'rDO' is the point about halfway along the start cap's round perimeter, where
594 // TODO: use normal from bezier traversal for cap, instead of from vertices
641 // TODO: use normal from bezier traversal for cap, instead of from vertices
815 if (paintInfo.cap == SkPaint::kRound_Cap) {