Lines Matching refs:buffer
27 i, buffer[i].position[0], buffer[i].position[1], buffer[i].alpha); \
31 ALOGD("point %d at %f %f", i, buffer[i].position[0], buffer[i].position[1]); \
165 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size());
173 copyVertex(&buffer[currentIndex++], &perimeter[srcAindex]);
175 copyVertex(&buffer[currentIndex++], &perimeter[srcBindex]);
190 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size() * 2 + 2);
207 Vertex::set(&buffer[currentIndex++],
211 Vertex::set(&buffer[currentIndex++],
221 copyVertex(&buffer[currentIndex++], &buffer[0]);
222 copyVertex(&buffer[currentIndex++], &buffer[1]);
239 Vertex* buffer = vertexBuffer.alloc<Vertex>(allocSize);
265 Vertex::set(&buffer[capOffset],
272 Vertex::set(&buffer[allocSize - 1 - capOffset],
295 Vertex::set(&buffer[currentIndex++],
299 Vertex::set(&buffer[currentIndex++],
310 Vertex::set(&buffer[currentIndex++],
313 Vertex::set(&buffer[currentIndex++],
332 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(perimeter.size() * 3 + 2);
352 AlphaVertex::set(&buffer[currentIndex++],
356 AlphaVertex::set(&buffer[currentIndex++],
367 copyAlphaVertex(&buffer[currentIndex++], &buffer[0]);
368 copyAlphaVertex(&buffer[currentIndex++], &buffer[1]);
376 copyAlphaVertex(&buffer[currentIndex++], &buffer[srcAindex * 2 + 1]);
378 copyAlphaVertex(&buffer[currentIndex++], &buffer[srcBindex * 2 + 1]);
393 AlphaVertex* buffer, bool isFirst, vec2 normal, int offset) {
425 AlphaVertex::set(&buffer[capIndex + 0],
429 AlphaVertex::set(&buffer[capIndex + 1],
437 AlphaVertex::set(&buffer[postCapIndex + 2],
441 AlphaVertex::set(&buffer[postCapIndex + 3],
462 AlphaVertex::set(&buffer[capPerimIndex++],
466 AlphaVertex::set(&buffer[capPerimIndex++],
473 copyAlphaVertex(&buffer[0], &buffer[capPerimIndex - 2]);
474 copyAlphaVertex(&buffer[1], &buffer[capPerimIndex - 1]);
484 copyAlphaVertex(&buffer[capFillIndex++], &buffer[1 + i]);
486 copyAlphaVertex(&buffer[capFillIndex++], &buffer[startCapFillIndex - 3 - i]);
491 copyAlphaVertex(&buffer[capFillIndex++], &buffer[capIndex + 1 + i]);
493 copyAlphaVertex(&buffer[capFillIndex++], &buffer[capIndex + 3 + 2 * extra - i]);
499 copyAlphaVertex(&buffer[0], &buffer[postCapIndex + 2]);
500 copyAlphaVertex(&buffer[1], &buffer[postCapIndex + 3]);
501 copyAlphaVertex(&buffer[postCapIndex + 4], &buffer[1]); // degenerate tris (the only two!)
502 copyAlphaVertex(&buffer[postCapIndex + 5], &buffer[postCapIndex + 1]);
504 copyAlphaVertex(&buffer[6 * vertices.size()], &buffer[postCapIndex + 1]);
505 copyAlphaVertex(&buffer[6 * vertices.size() + 1], &buffer[postCapIndex + 3]);
567 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(allocSize);
583 storeCapAA(paintInfo, vertices, buffer, true, lastNormal, offset);
599 AlphaVertex::set(&buffer[currentAAOuterIndex++],
603 AlphaVertex::set(&buffer[currentAAOuterIndex++],
608 AlphaVertex::set(&buffer[currentStrokeIndex++],
612 AlphaVertex::set(&buffer[currentStrokeIndex++],
617 AlphaVertex::set(&buffer[currentAAInnerIndex--],
621 AlphaVertex::set(&buffer[currentAAInnerIndex--],
631 storeCapAA(paintInfo, vertices, buffer, false, lastNormal, offset);
639 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(6 * perimeter.size() + 8);
665 AlphaVertex::set(&buffer[currentAAOuterIndex++],
669 AlphaVertex::set(&buffer[currentAAOuterIndex++],
674 AlphaVertex::set(&buffer[currentStrokeIndex++],
678 AlphaVertex::set(&buffer[currentStrokeIndex++],
683 AlphaVertex::set(&buffer[currentAAInnerIndex++],
687 AlphaVertex::set(&buffer[currentAAInnerIndex++],
698 copyAlphaVertex(&buffer[currentAAOuterIndex++], &buffer[0]);
699 copyAlphaVertex(&buffer[currentAAOuterIndex++], &buffer[1]);
700 copyAlphaVertex(&buffer[currentAAOuterIndex++], &buffer[1]);
702 copyAlphaVertex(&buffer[currentStrokeIndex++], &buffer[offset]);
703 copyAlphaVertex(&buffer[currentStrokeIndex++], &buffer[offset + 1]);
704 copyAlphaVertex(&buffer[currentStrokeIndex++], &buffer[offset + 1]);
706 copyAlphaVertex(&buffer[currentAAInnerIndex++], &buffer[2 * offset]);
707 copyAlphaVertex(&buffer[currentAAInnerIndex++], &buffer[2 * offset + 1]);
738 // path was empty, return without allocating vertex buffer
790 // pre-allocate space for lines in the buffer, and degenerate tris in between
821 // since multiple objects tessellated into buffer, separate them with degen tris