Lines Matching defs:extra

264  * 2 - can zig-zag across 'extra' vertices at either end, to create round caps
268 const int extra = paintInfo.capExtraDivisions();
269 const int allocSize = (vertices.size() + extra) * 2;
273 if (extra > 0) {
281 const float dTheta = PI / (extra + 1);
284 for (int i = 0; i < extra; i++) {
285 if (i < extra / 2) {
286 capOffset = extra - 2 * i - 1;
288 capOffset = 2 * i - extra;
307 int currentIndex = extra;
408 const int extra = paintInfo.capExtraDivisions();
409 const int extraOffset = (extra + 1) / 2;
411 ? 2 * offset + 6 + 2 * (extra + extraOffset)
415 // TODO: this normal should be scaled by radialScale if extra != 0, see totalOffsetFromNormals()
451 const int postCapIndex = (isRound && isFirst) ? (2 * extraOffset - 2) : capIndex + (2 * extra);
462 const float dTheta = PI / (extra + 1);
467 for (int i = 0; i < extra; i++) {
486 if (isFirst && i == extra - extraOffset) {
496 const int startCapFillIndex = capIndex + 2 * (extra - extraOffset) + 4;
498 for (int i = 0; i < extra + 2; i += 2) {
504 int capFillIndex = 6 * vertices.size() + 2 + 6 * extra - (extra + 2);
505 for (int i = 0; i < extra + 2; i += 2) {
508 buffer[capFillIndex++] = buffer[capIndex + 3 + 2 * extra - i];
553 * 'roundDivs' or 'rD' is the number of extra vertices (beyond the minimum of 2) that define the
559 this offset, the fill of the stroke is drawn from this point with minimal extra vertices.
579 const int extra = paintInfo.capExtraDivisions();
580 const int allocSize = 6 * vertices.size() + 2 + 6 * extra;
584 const int extraOffset = (extra + 1) / 2;
588 int currentAAInnerIndex = currentAAOuterIndex + (2 * offset) + 3 + (2 * extra);
589 int currentStrokeIndex = currentAAInnerIndex + 7 + (3 * extra - 2 * extraOffset);
854 const int extra = paintInfo.capExtraDivisions();
859 lineAllocSize = 6 * (2) + 2 + 6 * extra;
862 lineAllocSize = 2 * ((2) + extra);