Lines Matching refs:buffer
101 Vertex* buffer = vertexBuffer->alloc<Vertex>(perimeter.count());
109 copyVertex(&buffer[currentIndex++], &perimeter[srcAindex]);
111 copyVertex(&buffer[currentIndex++], &perimeter[srcBindex]);
119 Vertex* buffer = vertexBuffer->alloc<Vertex>(perimeter.count() * 2 + 2);
138 Vertex::set(&buffer[currentIndex++],
142 Vertex::set(&buffer[currentIndex++],
152 copyVertex(&buffer[currentIndex++], &buffer[0]);
153 copyVertex(&buffer[currentIndex++], &buffer[1]);
158 Vertex* buffer = vertexBuffer->alloc<Vertex>(vertices.count() * 2);
178 Vertex::set(&buffer[currentIndex++],
182 Vertex::set(&buffer[currentIndex++],
193 Vertex::set(&buffer[currentIndex++],
196 Vertex::set(&buffer[currentIndex++],
201 SkDebugf("point at %f %f", buffer[i].position[0], buffer[i].position[1]);
208 AlphaVertex* buffer = vertexBuffer->alloc<AlphaVertex>(perimeter.count() * 3 + 2);
232 AlphaVertex::set(&buffer[currentIndex++],
236 AlphaVertex::set(&buffer[currentIndex++],
247 copyAlphaVertex(&buffer[currentIndex++], &buffer[0]);
248 copyAlphaVertex(&buffer[currentIndex++], &buffer[1]);
256 copyAlphaVertex(&buffer[currentIndex++], &buffer[srcAindex * 2 + 1]);
258 copyAlphaVertex(&buffer[currentIndex++], &buffer[srcBindex * 2 + 1]);
265 SkDebugf("point at %f %f, alpha %f", buffer[i].position[0], buffer[i].position[1], buffer[i].alpha);
273 AlphaVertex* buffer = vertexBuffer->alloc<AlphaVertex>(6 * vertices.count() + 2);
312 AlphaVertex::set(&buffer[0],
316 AlphaVertex::set(&buffer[1],
321 AlphaVertex::set(&buffer[2 * offset + 6],
325 AlphaVertex::set(&buffer[2 * offset + 7],
329 copyAlphaVertex(&buffer[2 * offset + 8], &buffer[0]);
330 copyAlphaVertex(&buffer[2 * offset + 9], &buffer[1]);
331 copyAlphaVertex(&buffer[2 * offset + 10], &buffer[1]); // degenerate tris (the only two!)
332 copyAlphaVertex(&buffer[2 * offset + 11], &buffer[2 * offset + 7]);
352 AlphaVertex::set(&buffer[currentAAOuterIndex++],
356 AlphaVertex::set(&buffer[currentAAOuterIndex++],
361 AlphaVertex::set(&buffer[currentStrokeIndex++],
365 AlphaVertex::set(&buffer[currentStrokeIndex++],
370 AlphaVertex::set(&buffer[currentAAInnerIndex--],
374 AlphaVertex::set(&buffer[currentAAInnerIndex--],
400 AlphaVertex::set(&buffer[offset + 2],
404 AlphaVertex::set(&buffer[offset + 3],
409 AlphaVertex::set(&buffer[offset + 4],
413 AlphaVertex::set(&buffer[offset + 5],
418 buffer[vertexBuffer->getSize() - 2], &buffer[offset + 3]);
419 copyAlphaVertex(&buffer[vertexBuffer->getSize() - 1], &buffer[offset + 5]);
424 SkDebugf("point at %f %f, alpha %f", buffer[i].position[0], buffer[i].position[1], buffer[i].alpha);
432 AlphaVertex* buffer = vertexBuffer->alloc<AlphaVertex>(6 * perimeter.count() + 8);
471 AlphaVertex::set(&buffer[currentAAOuterIndex++],
475 AlphaVertex::set(&buffer[currentAAOuterIndex++],
480 AlphaVertex::set(&buffer[currentStrokeIndex++],
484 AlphaVertex::set(&buffer[currentStrokeIndex++],
489 AlphaVertex::set(&buffer[currentAAInnerIndex++],
493 AlphaVertex::set(&buffer[currentAAInnerIndex++],
504 copyAlphaVertex(&buffer[currentAAOuterIndex++], &buffer[0]);
505 copyAlphaVertex(&buffer[currentAAOuterIndex++], &buffer[1]);
506 copyAlphaVertex(&buffer[currentAAOuterIndex++], &buffer[1]);
508 copyAlphaVertex(&buffer[currentStrokeIndex++], &buffer[offset]);
509 copyAlphaVertex(&buffer[currentStrokeIndex++], &buffer[offset + 1]);
510 copyAlphaVertex(&buffer[currentStrokeIndex++], &buffer[offset + 1]);
512 copyAlphaVertex(&buffer[currentAAInnerIndex++], &buffer[2 * offset]);
513 copyAlphaVertex(&buffer[currentAAInnerIndex++], &buffer[2 * offset + 1]);
518 SkDebugf("point at %f %f, alpha %f", buffer[i].position[0], buffer[i].position[1], buffer[i].alpha);
550 // path was empty, return without allocating vertex buffer