/external/skia/samplecode/ |
vertexdump.cpp | 9 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]); 11 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]) { 12 verts[0].set(107, 189); 14 verts[1].set(116, 189); 16 verts[2].set(203, 189); 18 verts[3].set(212, 189); 20 verts[4].set(107, 198); 22 verts[5].set(116, 198); 24 verts[6].set(203, 198); 26 verts[7].set(212, 198) [all...] |
/external/skia/src/gpu/ops/ |
GrShadowRRectOp.cpp | 282 void fillInCircleVerts(const Geometry& args, bool isStroked, CircleVertex** verts) const { 300 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); 301 (*verts)->fColor = color; 302 (*verts)->fOffset = SkPoint::Make(-octOffset, -1); 303 (*verts)->fDistanceCorrection = distanceCorrection; 304 (*verts)->fClampValue = clampValue; 305 (*verts)++; 307 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); 308 (*verts)->fColor = color; 309 (*verts)->fOffset = SkPoint::Make(octOffset, -1) 571 CircleVertex* verts = (CircleVertex*)target->makeVertexSpace(vertexStride, fVertCount, variable [all...] |
GrAAConvexPathRenderer.cpp | 355 QuadVertex* verts, 368 // Check whether adding the verts for this segment to the current draw would cause index 377 verts += *v; 385 verts[*v + 0].fPos = sega.endPt(); 386 verts[*v + 1].fPos = verts[*v + 0].fPos + sega.endNorm(); 387 verts[*v + 2].fPos = verts[*v + 0].fPos + segb.fMid; 388 verts[*v + 3].fPos = verts[*v + 0].fPos + segb.fNorms[0] 681 intptr_t verts = reinterpret_cast<intptr_t>(vertices); local 798 void* verts = target->makeVertexSpace(vertexStride, tess.numPts(), &vertexBuffer, local 882 QuadVertex* verts = reinterpret_cast<QuadVertex*>(target->makeVertexSpace( variable [all...] |
GrNonAAStrokeRectOp.cpp | 20 could use an indices array, and then only send 8 verts, but not sure that 23 static void init_stroke_rect_strip(SkPoint verts[10], const SkRect& rect, SkScalar width) { 29 verts[0].set(rect.fLeft + rad, rect.fTop + rad); 30 verts[1].set(rect.fLeft - rad, rect.fTop - rad); 31 verts[2].set(rect.fRight - rad, rect.fTop + rad); 32 verts[3].set(rect.fRight + rad, rect.fTop - rad); 33 verts[4].set(rect.fRight - rad, rect.fBottom - rad); 34 verts[5].set(rect.fRight + rad, rect.fBottom + rad); 35 verts[6].set(rect.fLeft + rad, rect.fBottom - rad); 36 verts[7].set(rect.fLeft - rad, rect.fBottom + rad) 152 void* verts = variable [all...] |
GrOvalOpFactory.cpp | 663 // Second, the outer radius is used to compute the verts of the bounding box that is 1287 EllipseVertex* verts = reinterpret_cast<EllipseVertex*>( variable 1509 DIEllipseVertex* verts = reinterpret_cast<DIEllipseVertex*>( variable [all...] |
GrAAStrokeRectOp.cpp | 436 intptr_t verts = reinterpret_cast<intptr_t>(vertices) + offset; local 441 SkPoint* fan0Pos = reinterpret_cast<SkPoint*>(verts); 442 SkPoint* fan1Pos = reinterpret_cast<SkPoint*>(verts + outerVertexNum * vertexStride); 443 SkPoint* fan2Pos = reinterpret_cast<SkPoint*>(verts + 2 * outerVertexNum * vertexStride); 445 verts + (2 * outerVertexNum + innerVertexNum) * vertexStride); 498 SkPoint* fan0AssistPos = reinterpret_cast<SkPoint*>(verts + 4 * vertexStride); 500 reinterpret_cast<SkPoint*>(verts + (outerVertexNum + 4) * vertexStride); 523 // Make verts point to vertex color and then set all the color and coverage vertex attrs 525 verts += sizeof(SkPoint); 528 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = 0 [all...] |
GrRegionOp.cpp | 33 intptr_t verts = vertices; local 36 SkPoint* position = (SkPoint*)verts; 40 GrColor* vertColor = reinterpret_cast<GrColor*>(verts + kColorOffset); 46 verts += vertexStride * kVertsPerInstance; 127 intptr_t verts = reinterpret_cast<intptr_t>(vertices); variable 129 tesselate_region(verts, vertexStride, fRegions[i].fColor, fRegions[i].fRegion); 131 verts += numRectsInRegion * kVertsPerInstance * vertexStride;
|
GrDrawVerticesOp.cpp | 155 void* verts = target->makeVertexSpace(vertexStride, fVertexCount, &vertexBuffer, &firstVertex); local 157 if (!verts) { 200 V* v = (V*)verts; 210 verts = v + vertexCount; 218 mesh.fViewMatrix.mapPoints(((SkPoint*)verts), &positions[j], 1); 220 *((SkPoint*)verts) = positions[j]; 224 *(uint32_t*)((intptr_t)verts + kColorOffset) = colors[j]; 226 *(uint32_t*)((intptr_t)verts + kColorOffset) = mesh.fColor; 231 *(SkPoint*)((intptr_t)verts + localCoordOffset) = localCoords[j]; 233 *(SkPoint*)((intptr_t)verts + localCoordOffset) = positions[j] [all...] |
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
pa_avx.cpp | 37 bool PaTriList0(PA_STATE_OPT& pa, uint32_t slot, simdvector verts[]); 38 bool PaTriList1(PA_STATE_OPT& pa, uint32_t slot, simdvector verts[]); 39 bool PaTriList2(PA_STATE_OPT& pa, uint32_t slot, simdvector verts[]); 40 void PaTriListSingle0(PA_STATE_OPT& pa, uint32_t slot, uint32_t primIndex, __m128 verts[]); 42 bool PaTriStrip0(PA_STATE_OPT& pa, uint32_t slot, simdvector verts[]); 43 bool PaTriStrip1(PA_STATE_OPT& pa, uint32_t slot, simdvector verts[]); 44 void PaTriStripSingle0(PA_STATE_OPT& pa, uint32_t slot, uint32_t primIndex, __m128 verts[]); 46 bool PaTriFan0(PA_STATE_OPT& pa, uint32_t slot, simdvector verts[]); 47 bool PaTriFan1(PA_STATE_OPT& pa, uint32_t slot, simdvector verts[]); 48 void PaTriFanSingle0(PA_STATE_OPT& pa, uint32_t slot, uint32_t primIndex, __m128 verts[]); [all...] |
/external/skia/tests/ |
ShadowUtilsTest.cpp | 20 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, true); local 21 if (expectSuccess != SkToBool(verts)) { 25 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, false); 26 if (expectSuccess != SkToBool(verts)) { 30 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false); 31 if (expectSuccess != SkToBool(verts)) { 35 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false); 36 if (expectSuccess != SkToBool(verts)) {
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
draw_pt_decompose.h | 2 char *verts = (char *) vertices; \
|
draw_pipe.c | 179 verts + stride * (i0), \ 180 verts + stride * (i1), \ 181 verts + stride * (i2) ); \ 188 verts + stride * (i0), \ 189 verts + stride * (i1) ); \ 194 do_point( draw, verts + stride * (i0) ); \ 232 draw->pipeline.verts = (char *)vert_info->verts; 264 vert_info->verts, 271 draw->pipeline.verts = NULL 324 char *verts = ((char*)vert_info->verts) + local [all...] |
draw_pipe_util.c | 61 /* This is only used for temporary verts. 125 if (draw->pipeline.verts) 128 char *verts = draw->pipeline.verts; local 132 ((struct vertex_header *)verts)->vertex_id = UNDEFINED_VERTEX_ID; 133 verts += stride;
|
/external/mesa3d/src/mesa/swrast_setup/ |
ss_context.h | 39 SWvertex *verts; member in struct:__anon28777
|
ss_triangle.c | 118 SWvertex *verts = swsetup->verts; local 119 SWvertex *v0 = &verts[e0]; 120 SWvertex *v1 = &verts[e1]; 121 SWvertex *v2 = &verts[e2]; 216 SWvertex *verts = SWSETUP_CONTEXT(ctx)->verts; local 222 _swrast_Point( ctx, &verts[VB->Elts[i]] ); 227 _swrast_Point( ctx, &verts[i] ); 233 SWvertex *verts = SWSETUP_CONTEXT(ctx)->verts local [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_draw.c | 417 struct st_util_vertex *verts; local 422 &vb.buffer_offset, &vb.buffer, (void **) &verts); 428 verts[0].x = x0; 429 verts[0].y = y1; 430 verts[0].z = z; 431 verts[0].r = color[0]; 432 verts[0].g = color[1]; 433 verts[0].b = color[2]; 434 verts[0].a = color[3]; 435 verts[0].s = s0 [all...] |
st_cb_bitmap.c | 697 struct st_util_vertex *verts; local 721 &vb.buffer_offset, &vb.buffer, (void **) &verts); 740 verts->x = clip_x0; 741 verts->y = clip_y0; 742 verts->z = z; 743 verts->r = color[0]; 744 verts->g = color[1]; 745 verts->b = color[2]; 746 verts->a = color[3]; 747 verts->s = s0 [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
Canvas_VertexModeTest.java | 50 float[] verts = new float[10]; local 60 verts, 73 verts, 86 verts,
|
/external/mesa3d/src/mesa/drivers/common/ |
meta_generate_mipmap.c | 151 struct vertex verts[4]; local 254 memset(verts, 0, sizeof(verts)); 257 verts[0].x = -1.0F; 258 verts[0].y = -1.0F; 259 verts[1].x = 1.0F; 260 verts[1].y = -1.0F; 261 verts[2].x = 1.0F; 262 verts[2].y = 1.0F; 263 verts[3].x = -1.0F [all...] |
meta.c | 1703 struct vertex verts[4]; local 1849 struct vertex verts[4]; local 2098 struct vertex verts[4]; local 2353 struct vertex verts[4]; local 2999 struct vertex verts[4]; local 3305 struct vertex verts[4]; local [all...] |
/external/mesa3d/src/gallium/auxiliary/postprocess/ |
filters.h | 46 unsigned int verts; /* How many are vertex shaders */ member in struct:pp_filter_t 55 /* name inner shaders verts init run free */
|
pp_program.c | 61 static const float verts[4][2][4] = { local 81 PIPE_USAGE_DEFAULT, sizeof(verts)); 82 pipe_buffer_write(p->pipe, p->vbuf, 0, sizeof(verts), verts);
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
radeon_blit.c | 274 float verts[12]; local 282 verts[0] = dst_x_offset; 283 verts[1] = dst_y_offset + reg_height; 284 verts[2] = texcoords[0]; 285 verts[3] = texcoords[3]; 287 verts[4] = dst_x_offset + reg_width; 288 verts[5] = dst_y_offset + reg_height; 289 verts[6] = texcoords[1]; 290 verts[7] = texcoords[3]; 292 verts[8] = dst_x_offset + reg_width [all...] |
/external/skia/src/gpu/ |
GrTessellator.h | 43 // for all three vertices of a triangle). The 'verts' out parameter is set to point to the resultant 46 WindingVertex** verts);
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
r200_blit.c | 426 float verts[12]; local 434 verts[0] = dst_x_offset; 435 verts[1] = dst_y_offset + reg_height; 436 verts[2] = texcoords[0]; 437 verts[3] = texcoords[3]; 439 verts[4] = dst_x_offset + reg_width; 440 verts[5] = dst_y_offset + reg_height; 441 verts[6] = texcoords[1]; 442 verts[7] = texcoords[3]; 444 verts[8] = dst_x_offset + reg_width [all...] |