Lines Matching defs:cap

97             style(paint->getStyle()), cap(paint->getStrokeCap()), isAA(paint->isAntiAlias()),
120 SkPaint::Cap cap;
147 * Returns the number of cap divisions beyond the minimum 2 (kButt_Cap/kSquareCap will return 0)
151 if (cap == SkPaint::kRound_Cap) {
154 // ROUND_CAP_THRESH is the maximum error for polygonal approximation of the round cap
233 if (paintInfo.cap == SkPaint::kSquare_Cap) {
388 * Stores geometry for a single, AA-perimeter (potentially rounded) cap
411 if (paintInfo.cap != SkPaint::kRound_Cap) {
412 // if the cap is square or butt, the inside primary cap vertices will be inset in two
417 // determine referencePoint, the center point for the 4 primary cap vertices
420 if (paintInfo.cap == SkPaint::kSquare_Cap) {
421 // To account for square cap, move the primary cap vertices (that create the AA edge) by the
435 bool isRound = paintInfo.cap == SkPaint::kRound_Cap;
477 capPerimIndex = 2; // start writing the rest of the round cap at index 2
516 b) 2, 2 * roundDivOff | First half of begin cap's perimeter
520 a) 4 | End cap's
525 a) 6 | Begin cap's perimeter
526 b) 2, 2*(rD - rDO + 1), | Last half of begin cap's perimeter
532 b) 2, roundDivs | (and end cap fill, for round)
535 * rows starting with 'a)' denote the Butt or Square cap vertex use, 'b)' denote Round
540 round cap's shape, and is at least two. This will increase with cap size to sufficiently
541 define the cap's level of tessellation.
543 * 'roundDivOffset' or 'rDO' is the point about halfway along the start cap's round perimeter, where
583 // TODO: use normal from bezier traversal for cap, instead of from vertices
631 // TODO: use normal from bezier traversal for cap, instead of from vertices
811 if (paintInfo.cap == SkPaint::kRound_Cap) {