Lines Matching refs:buffer
23 ALOGD("point %d at %f %f, alpha %f", i, buffer[i].x, buffer[i].y, buffer[i].alpha); \
27 ALOGD("point %d at %f %f", i, buffer[i].x, buffer[i].y); \
187 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size());
195 buffer[currentIndex++] = perimeter[srcAindex];
197 buffer[currentIndex++] = perimeter[srcBindex];
213 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size() * 2 + 2);
228 Vertex::set(&buffer[currentIndex++], current->x + totalOffset.x,
231 Vertex::set(&buffer[currentIndex++], current->x - totalOffset.x,
239 buffer[currentIndex++] = buffer[0];
240 buffer[currentIndex++] = buffer[1];
246 const Vector2& normal, Vertex* buffer, int& currentIndex,
257 Vertex::set(&buffer[currentIndex++], referencePoint + strokeOffset);
258 Vertex::set(&buffer[currentIndex++], referencePoint - strokeOffset);
273 Vertex* buffer = vertexBuffer.alloc<Vertex>(allocSize);
294 Vertex::set(&buffer[capOffset], vertices[0].x + beginRadialOffset.x,
300 Vertex::set(&buffer[allocSize - 1 - capOffset],
312 storeBeginEnd(paintInfo, vertices[0], lastNormal, buffer, currentIndex, true);
323 Vertex::set(&buffer[currentIndex++], center + strokeOffset);
324 Vertex::set(&buffer[currentIndex++], center - strokeOffset);
330 storeBeginEnd(paintInfo, vertices[lastIndex], lastNormal, buffer, currentIndex, false);
348 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(perimeter.size() * 3 + 2);
367 AlphaVertex::set(&buffer[currentIndex++], current->x + totalOffset.x,
369 AlphaVertex::set(&buffer[currentIndex++], current->x - totalOffset.x,
377 buffer[currentIndex++] = buffer[0];
378 buffer[currentIndex++] = buffer[1];
386 buffer[currentIndex++] = buffer[srcAindex * 2 + 1];
388 buffer[currentIndex++] = buffer[srcBindex * 2 + 1];
403 AlphaVertex* buffer, bool isFirst, Vector2 normal, int offset) {
435 AlphaVertex::set(&buffer[capIndex + 0], referencePoint.x + outerOffset.x + capAAOffset.x,
437 AlphaVertex::set(&buffer[capIndex + 1], referencePoint.x + innerOffset.x - capAAOffset.x,
443 AlphaVertex::set(&buffer[postCapIndex + 2], referencePoint.x - outerOffset.x + capAAOffset.x,
445 AlphaVertex::set(&buffer[postCapIndex + 3], referencePoint.x - innerOffset.x - capAAOffset.x,
464 AlphaVertex::set(&buffer[capPerimIndex++],
467 AlphaVertex::set(&buffer[capPerimIndex++],
473 buffer[0] = buffer[capPerimIndex - 2];
474 buffer[1] = buffer[capPerimIndex - 1];
484 buffer[capFillIndex++] = buffer[1 + i];
486 buffer[capFillIndex++] = buffer[startCapFillIndex - 3 - i];
491 buffer[capFillIndex++] = buffer[capIndex + 1 + i];
493 buffer[capFillIndex++] = buffer[capIndex + 3 + 2 * extra - i];
499 buffer[0] = buffer[postCapIndex + 2];
500 buffer[1] = buffer[postCapIndex + 3];
501 buffer[postCapIndex + 4] = buffer[1]; // degenerate tris (the only two!)
502 buffer[postCapIndex + 5] = buffer[postCapIndex + 1];
504 buffer[6 * vertices.size()] = buffer[postCapIndex + 1];
505 buffer[6 * vertices.size() + 1] = buffer[postCapIndex + 3];
567 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(allocSize);
582 storeCapAA(paintInfo, vertices, buffer, true, lastNormal, offset);
597 AlphaVertex::set(&buffer[currentAAOuterIndex++], current->x + outerOffset.x,
599 AlphaVertex::set(&buffer[currentAAOuterIndex++], current->x + innerOffset.x,
602 AlphaVertex::set(&buffer[currentStrokeIndex++], current->x + innerOffset.x,
604 AlphaVertex::set(&buffer[currentStrokeIndex++], current->x - innerOffset.x,
607 AlphaVertex::set(&buffer[currentAAInnerIndex--], current->x - innerOffset.x,
609 AlphaVertex::set(&buffer[currentAAInnerIndex--], current->x - outerOffset.x,
617 storeCapAA(paintInfo, vertices, buffer, false, lastNormal, offset);
625 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(6 * perimeter.size() + 8);
649 AlphaVertex::set(&buffer[currentAAOuterIndex++], current->x + outerOffset.x,
651 AlphaVertex::set(&buffer[currentAAOuterIndex++], current->x + innerOffset.x,
654 AlphaVertex::set(&buffer[currentStrokeIndex++], current->x + innerOffset.x,
656 AlphaVertex::set(&buffer[currentStrokeIndex++], current->x - innerOffset.x,
659 AlphaVertex::set(&buffer[currentAAInnerIndex++], current->x - innerOffset.x,
661 AlphaVertex::set(&buffer[currentAAInnerIndex++], current->x - outerOffset.x,
669 buffer[currentAAOuterIndex++] = buffer[0];
670 buffer[currentAAOuterIndex++] = buffer[1];
671 buffer[currentAAOuterIndex++] = buffer[1];
673 buffer[currentStrokeIndex++] = buffer[offset];
674 buffer[currentStrokeIndex++] = buffer[offset + 1];
675 buffer[currentStrokeIndex++] = buffer[offset + 1];
677 buffer[currentAAInnerIndex++] = buffer[2 * offset];
678 buffer[currentAAInnerIndex++] = buffer[2 * offset + 1];
711 // path was empty, return without allocating vertex buffer
817 // pre-allocate space for lines in the buffer, and degenerate tris in between
845 // since multiple objects tessellated into buffer, separate them with degen tris