Home | History | Annotate | Download | only in hwui

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]);
228 const vec2& normal, Vertex* buffer, int& currentIndex, bool begin) {
237 Vertex::set(&buffer[currentIndex++], referencePoint + strokeOffset);
238 Vertex::set(&buffer[currentIndex++], referencePoint - strokeOffset);
252 Vertex* buffer = vertexBuffer.alloc<Vertex>(allocSize);
277 Vertex::set(&buffer[capOffset],
284 Vertex::set(&buffer[allocSize - 1 - capOffset],
297 storeBeginEnd(paintInfo, vertices[0], lastNormal, buffer, currentIndex, true);
309 Vertex::set(&buffer[currentIndex++], center + strokeOffset);
310 Vertex::set(&buffer[currentIndex++], center - strokeOffset);
316 storeBeginEnd(paintInfo, vertices[lastIndex], lastNormal, buffer, currentIndex, false);
333 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(perimeter.size() * 3 + 2);
353 AlphaVertex::set(&buffer[currentIndex++],
357 AlphaVertex::set(&buffer[currentIndex++],
368 copyAlphaVertex(&buffer[currentIndex++], &buffer[0]);
369 copyAlphaVertex(&buffer[currentIndex++], &buffer[1]);
377 copyAlphaVertex(&buffer[currentIndex++], &buffer[srcAindex * 2 + 1]);
379 copyAlphaVertex(&buffer[currentIndex++], &buffer[srcBindex * 2 + 1]);
394 AlphaVertex* buffer, bool isFirst, vec2 normal, int offset) {
426 AlphaVertex::set(&buffer[capIndex + 0],
430 AlphaVertex::set(&buffer[capIndex + 1],
438 AlphaVertex::set(&buffer[postCapIndex + 2],
442 AlphaVertex::set(&buffer[postCapIndex + 3],
463 AlphaVertex::set(&buffer[capPerimIndex++],
467 AlphaVertex::set(&buffer[capPerimIndex++],
474 copyAlphaVertex(&buffer[0], &buffer[capPerimIndex - 2]);
475 copyAlphaVertex(&buffer[1], &buffer[capPerimIndex - 1]);
485 copyAlphaVertex(&buffer[capFillIndex++], &buffer[1 + i]);
487 copyAlphaVertex(&buffer[capFillIndex++], &buffer[startCapFillIndex - 3 - i]);
492 copyAlphaVertex(&buffer[capFillIndex++], &buffer[capIndex + 1 + i]);
494 copyAlphaVertex(&buffer[capFillIndex++], &buffer[capIndex + 3 + 2 * extra - i]);
500 copyAlphaVertex(&buffer[0], &buffer[postCapIndex + 2]);
501 copyAlphaVertex(&buffer[1], &buffer[postCapIndex + 3]);
502 copyAlphaVertex(&buffer[postCapIndex + 4], &buffer[1]); // degenerate tris (the only two!)
503 copyAlphaVertex(&buffer[postCapIndex + 5], &buffer[postCapIndex + 1]);
505 copyAlphaVertex(&buffer[6 * vertices.size()], &buffer[postCapIndex + 1]);
506 copyAlphaVertex(&buffer[6 * vertices.size() + 1], &buffer[postCapIndex + 3]);
568 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(allocSize);
584 storeCapAA(paintInfo, vertices, buffer, true, lastNormal, offset);
600 AlphaVertex::set(&buffer[currentAAOuterIndex++],
604 AlphaVertex::set(&buffer[currentAAOuterIndex++],
609 AlphaVertex::set(&buffer[currentStrokeIndex++],
613 AlphaVertex::set(&buffer[currentStrokeIndex++],
618 AlphaVertex::set(&buffer[currentAAInnerIndex--],
622 AlphaVertex::set(&buffer[currentAAInnerIndex--],
632 storeCapAA(paintInfo, vertices, buffer, false, lastNormal, offset);
640 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(6 * perimeter.size() + 8);
666 AlphaVertex::set(&buffer[currentAAOuterIndex++],
670 AlphaVertex::set(&buffer[currentAAOuterIndex++],
675 AlphaVertex::set(&buffer[currentStrokeIndex++],
679 AlphaVertex::set(&buffer[currentStrokeIndex++],
684 AlphaVertex::set(&buffer[currentAAInnerIndex++],
688 AlphaVertex::set(&buffer[currentAAInnerIndex++],
699 copyAlphaVertex(&buffer[currentAAOuterIndex++], &buffer[0]);
700 copyAlphaVertex(&buffer[currentAAOuterIndex++], &buffer[1]);
701 copyAlphaVertex(&buffer[currentAAOuterIndex++], &buffer[1]);
703 copyAlphaVertex(&buffer[currentStrokeIndex++], &buffer[offset]);
704 copyAlphaVertex(&buffer[currentStrokeIndex++], &buffer[offset + 1]);
705 copyAlphaVertex(&buffer[currentStrokeIndex++], &buffer[offset + 1]);
707 copyAlphaVertex(&buffer[currentAAInnerIndex++], &buffer[2 * offset]);
708 copyAlphaVertex(&buffer[currentAAInnerIndex++], &buffer[2 * offset + 1]);
739 // path was empty, return without allocating vertex buffer
847 // pre-allocate space for lines in the buffer, and degenerate tris in between
878 // since multiple objects tessellated into buffer, separate them with degen tris