Lines Matching refs:extra

246  * 2 - can zig-zag across 'extra' vertices at either end, to create round caps
250 const int extra = paintInfo.capExtraDivisions();
251 const int allocSize = (vertices.size() + extra) * 2;
255 if (extra > 0) {
263 const float dTheta = PI / (extra + 1);
267 for (int i = 0; i < extra; i++) {
268 if (i < extra / 2) {
269 capOffset = extra - 2 * i - 1;
271 capOffset = 2 * i - extra;
290 int currentIndex = extra;
395 const int extra = paintInfo.capExtraDivisions();
396 const int extraOffset = (extra + 1) / 2;
398 ? 2 * offset + 6 + 2 * (extra + extraOffset)
402 // TODO: this normal should be scaled by radialScale if extra != 0, see totalOffsetFromNormals()
437 const int postCapIndex = (isRound && isFirst) ? (2 * extraOffset - 2) : capIndex + (2 * extra);
448 const float dTheta = PI / (extra + 1);
453 for (int i = 0; i < extra; i++) {
472 if (isFirst && i == extra - extraOffset) {
482 const int startCapFillIndex = capIndex + 2 * (extra - extraOffset) + 4;
484 for (int i = 0; i < extra + 2; i += 2) {
490 int capFillIndex = 6 * vertices.size() + 2 + 6 * extra - (extra + 2);
491 for (int i = 0; i < extra + 2; i += 2) {
494 copyAlphaVertex(&buffer[capFillIndex++], &buffer[capIndex + 3 + 2 * extra - i]);
539 * 'roundDivs' or 'rD' is the number of extra vertices (beyond the minimum of 2) that define the
545 this offset, the fill of the stroke is drawn from this point with minimal extra vertices.
565 const int extra = paintInfo.capExtraDivisions();
566 const int allocSize = 6 * vertices.size() + 2 + 6 * extra;
570 const int extraOffset = (extra + 1) / 2;
574 int currentAAInnerIndex = currentAAOuterIndex + (2 * offset) + 3 + (2 * extra);
575 int currentStrokeIndex = currentAAInnerIndex + 7 + (3 * extra - 2 * extraOffset);
844 const int extra = paintInfo.capExtraDivisions();
849 lineAllocSize = 6 * (2) + 2 + 6 * extra;
852 lineAllocSize = 2 * ((2) + extra);