Home
last modified time | relevance | path

Searched refs:verts (Results 1 - 25 of 54) sorted by relevance

123

/third_party/skia/src/gpu/ops/
H A DShadowRRectOp.cpp268 void fillInCircleVerts(const Geometry& args, bool isStroked, CircleVertex** verts) const { in fillInCircleVerts()
285 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
286 (*verts)->fColor = color; in fillInCircleVerts()
287 (*verts)->fOffset = SkPoint::Make(-octOffset, -1); in fillInCircleVerts()
288 (*verts)->fDistanceCorrection = distanceCorrection; in fillInCircleVerts()
289 (*verts)++; in fillInCircleVerts()
291 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
292 (*verts)->fColor = color; in fillInCircleVerts()
293 (*verts)->fOffset = SkPoint::Make(octOffset, -1); in fillInCircleVerts()
294 (*verts) in fillInCircleVerts()
556 CircleVertex* verts = (CircleVertex*)target->makeVertexSpace( global() variable
[all...]
H A DAAConvexPathRenderer.cpp369 VertexWriter& verts, in create_vertices()
383 // Check whether adding the verts for this segment to the current draw would cause index in create_vertices()
403 verts << p0 << color << SkPoint{0, 0} << negOneDists; in create_vertices()
404 verts << (p0 + sega.endNorm()) << color << SkPoint{0, -SK_Scalar1} << negOneDists; in create_vertices()
405 verts << (p0 + segb.fMid) << color << SkPoint{0, -SK_Scalar1} << negOneDists; in create_vertices()
406 verts << (p0 + segb.fNorms[0]) << color << SkPoint{0, -SK_Scalar1} << negOneDists; in create_vertices()
425 verts << fanPt << color << SkPoint{0, dist} << negOneDists; in create_vertices()
426 verts << v1Pos << color << SkPoint{0, 0} << negOneDists; in create_vertices()
427 verts << v2Pos << color << SkPoint{0, 0} << negOneDists; in create_vertices()
428 verts << (v1Po in create_vertices()
365 create_vertices(const SegmentArray& segments, const SkPoint& fanPt, const GrVertexColor& color, DrawArray* draws, VertexWriter& verts, uint16_t* idxs, size_t vertexStride) create_vertices() argument
[all...]
H A DStrokeRectOp.cpp61 could use an indices array, and then only send 8 verts, but not sure that
64 void init_nonaa_stroke_rect_strip(SkPoint verts[10], const SkRect& rect, SkScalar width) { in init_nonaa_stroke_rect_strip() argument
67 verts[0].set(rect.fLeft + rad, rect.fTop + rad); in init_nonaa_stroke_rect_strip()
68 verts[1].set(rect.fLeft - rad, rect.fTop - rad); in init_nonaa_stroke_rect_strip()
69 verts[2].set(rect.fRight - rad, rect.fTop + rad); in init_nonaa_stroke_rect_strip()
70 verts[3].set(rect.fRight + rad, rect.fTop - rad); in init_nonaa_stroke_rect_strip()
71 verts[4].set(rect.fRight - rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip()
72 verts[5].set(rect.fRight + rad, rect.fBottom + rad); in init_nonaa_stroke_rect_strip()
73 verts[6].set(rect.fLeft + rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip()
74 verts[ in init_nonaa_stroke_rect_strip()
216 void* verts = global() variable
[all...]
H A DAAHairLinePathRenderer.cpp224 // trade off of fill vs cpu time on verts in num_quad_subdivs()
523 void set_uv_quad(const SkPoint qpts[3], BezierVertex verts[kQuadNumVertices]) { in set_uv_quad() argument
526 DevToUV.apply(verts, kQuadNumVertices, sizeof(BezierVertex), sizeof(SkPoint)); in set_uv_quad()
532 BezierVertex verts[kQuadNumVertices]) { in bloat_quad()
556 BezierVertex& a0 = verts[0]; in bloat_quad()
557 BezierVertex& a1 = verts[1]; in bloat_quad()
558 BezierVertex& b0 = verts[2]; in bloat_quad()
559 BezierVertex& c0 = verts[3]; in bloat_quad()
560 BezierVertex& c1 = verts[4]; in bloat_quad()
609 SkMatrixPriv::MapPointsWithStride(*toSrc, &verts[ in bloat_quad()
529 bloat_quad(const SkPoint qpts[3], const SkMatrix* toDevice, const SkMatrix* toSrc, BezierVertex verts[kQuadNumVertices]) bloat_quad() argument
621 set_conic_coeffs(const SkPoint p[3], BezierVertex verts[kQuadNumVertices], const SkScalar weight) set_conic_coeffs() argument
1188 LineVertex* verts = reinterpret_cast<LineVertex*>(helper.vertices()); onPrepareDraws() local
[all...]
H A DAALinearizingConvexPathRenderer.cpp49 VertexWriter verts{vertData}; in extract_verts()
55 verts << tess.point(i) << color << VertexWriter::If(localCoordsMatrix, lc) in extract_verts()
184 void* verts = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, in recordDraw() local
186 if (!verts) { in recordDraw()
190 memcpy(verts, vertices, vertexCount * vertexStride); in recordDraw()
H A DGrOvalOpFactory.cpp1097 // Second, the outer radius is used to compute the verts of the bounding box that is
1585 // Second, the outer radius is used to compute the verts of the bounding box that is
2018 VertexWriter verts{helper.vertices()};
2019 if (!verts) {
2051 verts.writeQuad(VertexWriter::TriStripFromRect(
2294 VertexWriter verts{helper.vertices()};
2295 if (!verts) {
2326 verts.writeQuad(VertexWriter::TriStripFromRect(drawBounds),
2587 // Second, the outer radius is used to compute the verts of the bounding box that is
2625 static void FillInOverstrokeVerts(VertexWriter& verts, cons
[all...]
/third_party/skia/samplecode/
H A Dvertexdump.cpp9 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]);
11 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]) { in setup_vertexbug() argument
12 verts[0].set(107, 189); in setup_vertexbug()
14 verts[1].set(116, 189); in setup_vertexbug()
16 verts[2].set(203, 189); in setup_vertexbug()
18 verts[3].set(212, 189); in setup_vertexbug()
20 verts[4].set(107, 198); in setup_vertexbug()
22 verts[5].set(116, 198); in setup_vertexbug()
24 verts[6].set(203, 198); in setup_vertexbug()
26 verts[ in setup_vertexbug()
[all...]
H A DSampleVertices.cpp79 auto verts = SkVertices::MakeCopy(fRecs[i].fMode, fRecs[i].fCount, variable
85 canvas->drawVertices(verts, SkBlendMode::kModulate, paint);
90 canvas->drawVertices(verts, SkBlendMode::kModulate, paint);
95 canvas->drawVertices(verts, SkBlendMode::kModulate, paint);
/third_party/skia/tests/
H A DShadowTest.cpp22 void check_result(skiatest::Reporter* reporter, sk_sp<SkVertices> verts, in check_result() argument
24 if (expectSuccess != SkToBool(verts)) { in check_result()
28 if (SkToBool(verts)) { in check_result()
29 if (kDont_ExpectVerts == expectVerts && verts->priv().vertexCount()) { in check_result()
31 } else if (kDo_ExpectVerts == expectVerts && !verts->priv().vertexCount()) { in check_result()
40 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, true); in tessellate_shadow() local
41 check_result(reporter, verts, expectVerts, expectSuccess); in tessellate_shadow()
43 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, false); in tessellate_shadow()
44 check_result(reporter, verts, expectVerts, expectSuccess); in tessellate_shadow()
46 verts in tessellate_shadow()
139 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, rec.fZPlaneParams, true); check_xformed_bounds() local
[all...]
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_draw.c451 struct st_util_vertex *verts; in st_draw_quad() local
457 &vb.buffer_offset, &vb.buffer.resource, (void **) &verts); in st_draw_quad()
463 verts[0].x = x0; in st_draw_quad()
464 verts[0].y = y1; in st_draw_quad()
465 verts[0].z = z; in st_draw_quad()
466 verts[0].r = color[0]; in st_draw_quad()
467 verts[0].g = color[1]; in st_draw_quad()
468 verts[0].b = color[2]; in st_draw_quad()
469 verts[0].a = color[3]; in st_draw_quad()
470 verts[ in st_draw_quad()
[all...]
H A Dst_cb_bitmap.c662 struct st_util_vertex *verts; in st_DrawAtlasBitmaps() local
686 &vb.buffer_offset, &vb.buffer.resource, (void **) &verts); in st_DrawAtlasBitmaps()
688 if (unlikely(!verts)) { in st_DrawAtlasBitmaps()
710 verts->x = clip_x0; in st_DrawAtlasBitmaps()
711 verts->y = clip_y0; in st_DrawAtlasBitmaps()
712 verts->z = z; in st_DrawAtlasBitmaps()
713 verts->r = color[0]; in st_DrawAtlasBitmaps()
714 verts->g = color[1]; in st_DrawAtlasBitmaps()
715 verts->b = color[2]; in st_DrawAtlasBitmaps()
716 verts in st_DrawAtlasBitmaps()
[all...]
H A Dst_pbo.c221 float *verts = NULL; in st_pbo_draw() local
226 &vbo.buffer_offset, &vbo.buffer.resource, (void **) &verts); in st_pbo_draw()
227 if (!verts) in st_pbo_draw()
230 verts[0] = x0; in st_pbo_draw()
231 verts[1] = y0; in st_pbo_draw()
232 verts[2] = x0; in st_pbo_draw()
233 verts[3] = y1; in st_pbo_draw()
234 verts[4] = x1; in st_pbo_draw()
235 verts[5] = y0; in st_pbo_draw()
236 verts[ in st_pbo_draw()
[all...]
/third_party/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_pipe.c186 verts + stride * (i0), \
187 verts + stride * (i1), \
188 verts + stride * (i2)); \
195 verts + stride * (i0), \
196 verts + stride * (i1)); \
201 do_point(draw, verts + stride * (i0)); \
238 draw->pipeline.verts = (char *)vert_info->verts; in draw_pipeline_run()
270 vert_info->verts, in draw_pipeline_run()
277 draw->pipeline.verts in draw_pipeline_run()
330 char *verts = ((char*)vert_info->verts) + draw_pipeline_run_linear() local
[all...]
H A Ddraw_pipe_util.c61 /* This is only used for temporary verts.
125 if (draw->pipeline.verts) in draw_reset_vertex_ids()
128 char *verts = draw->pipeline.verts; in draw_reset_vertex_ids() local
132 ((struct vertex_header *)verts)->vertex_id = UNDEFINED_VERTEX_ID; in draw_reset_vertex_ids()
133 verts += stride; in draw_reset_vertex_ids()
H A Ddraw_pt_fetch_shade_pipeline.c205 output_verts->verts = in draw_vertex_shader_run()
211 (const float (*)[4])input_verts->verts->data, in draw_vertex_shader_run()
212 ( float (*)[4])output_verts->verts->data, in draw_vertex_shader_run()
246 fetched_vert_info.verts = in fetch_pipeline_generic()
250 if (!fetched_vert_info.verts) { in fetch_pipeline_generic()
263 fetch(fpme->fetch, fetch_info, (char *)fetched_vert_info.verts); in fetch_pipeline_generic()
268 * the pipeline verts. in fetch_pipeline_generic()
279 FREE(vert_info->verts); in fetch_pipeline_generic()
297 FREE(vert_info->verts); in fetch_pipeline_generic()
317 FREE(vert_info->verts); in fetch_pipeline_generic()
[all...]
H A Ddraw_tess.c117 char *output = (char *)output_verts->verts->data; in llvm_store_tcs_output()
165 const float (*input)[4] = (const float (*)[4])input_verts->verts->data; in draw_tess_ctrl_shader_run()
173 output_verts->verts = NULL; in draw_tess_ctrl_shader_run()
205 output_verts->verts = REALLOC(output_verts->verts, old_size, new_size); in draw_tess_ctrl_shader_run()
331 const float (*input)[4] = (const float (*)[4])input_verts->verts->data; in draw_tess_eval_shader_run()
339 output_verts->verts = NULL; in draw_tess_eval_shader_run()
378 output_verts->verts = REALLOC(output_verts->verts, old_size, new_size); in draw_tess_eval_shader_run()
391 char *output = (char *)output_verts->verts; in draw_tess_eval_shader_run()
[all...]
H A Ddraw_pt_fetch.c146 char *verts) in draw_pt_fetch_run()
166 verts ); in draw_pt_fetch_run()
174 char *verts) in draw_pt_fetch_run_linear()
194 verts ); in draw_pt_fetch_run_linear()
143 draw_pt_fetch_run(struct pt_fetch *fetch, const unsigned *elts, unsigned count, char *verts) draw_pt_fetch_run() argument
171 draw_pt_fetch_run_linear(struct pt_fetch *fetch, unsigned start, unsigned count, char *verts) draw_pt_fetch_run_linear() argument
H A Ddraw_pt_fetch_shade_pipeline_llvm.c593 llvm_vert_info.verts = (struct vertex_header *) in llvm_pipeline_generic()
597 if (!llvm_vert_info.verts) { in llvm_pipeline_generic()
623 llvm_vert_info.verts, in llvm_pipeline_generic()
651 FREE(vert_info->verts); in llvm_pipeline_generic()
673 FREE(vert_info->verts); in llvm_pipeline_generic()
701 FREE(vert_info->verts); in llvm_pipeline_generic()
724 FREE(vert_info->verts); in llvm_pipeline_generic()
771 FREE(vert_info->verts); in llvm_pipeline_generic()
774 FREE(gs_vert_info[i].verts); in llvm_pipeline_generic()
H A Ddraw_prim_assembler.c115 char *output = (char*)asmblr->output_verts->verts; in copy_verts()
116 const char *input = (const char*)asmblr->input_verts->verts; in copy_verts()
137 char *input = (char*)asmblr->input_verts->verts; in inject_primid()
294 output_verts->verts = (struct vertex_header*)MALLOC( in draw_prim_assembler_run()
/third_party/mesa3d/src/gallium/auxiliary/postprocess/
H A Dpp_program.c62 static const float verts[4][2][4] = { in pp_init_prog() local
82 PIPE_USAGE_DEFAULT, sizeof(verts)); in pp_init_prog()
83 pipe_buffer_write(p->pipe, p->vbuf, 0, sizeof(verts), verts); in pp_init_prog()
/third_party/skia/gm/
H A Dbeziereffects.cpp185 Vertex* verts = reinterpret_cast<Vertex*>(helper.vertices()); variable
186 if (!verts) {
190 SkPointPriv::SetRectTriStrip(&verts[0].fPosition, rect, sizeof(Vertex));
192 SkPoint3 pt3 = {verts[v].fPosition.x(), verts[v].fPosition.y(), 1.f};
193 fKLM.mapHomogeneousPoints((SkPoint3* ) verts[v].fKLM, &pt3, 1);
395 Vertex* verts = reinterpret_cast<Vertex*>(helper.vertices()); variable
396 if (!verts) {
400 SkPointPriv::SetRectTriStrip(&verts[0].fPosition, rect, sizeof(Vertex));
401 fDevToUV.apply(verts,
[all...]
H A Druntimecolorfilter.cpp119 auto verts = SkVertices::MakeCopy(SkVertices::kTriangleFan_VertexMode, 4, pos, pos, kColors); in DEF_SIMPLE_GM() local
127 surf->getCanvas()->drawVertices(verts, SkPaint()); in DEF_SIMPLE_GM()
162 canvas->drawVertices(verts, mode, makePaint(useCF, useShader)); in DEF_SIMPLE_GM()
/third_party/mesa3d/src/imgui/
H A Dimstb_truetype.h4297 static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex *verts)
4317 if (verts[i].type == STBTT_vline) {
4318 int x0 = (int) verts[i-1].x, y0 = (int) verts[i-1].y;
4319 int x1 = (int) verts[i ].x, y1 = (int) verts[i ].y;
4326 if (verts[i].type == STBTT_vcurve) {
4327 int x0 = (int) verts[i-1].x , y0 = (int) verts[i-1].y ;
4328 int x1 = (int) verts[
[all...]
/third_party/skia/third_party/externals/imgui/
H A Dimstb_truetype.h4297 static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex *verts)
4317 if (verts[i].type == STBTT_vline) {
4318 int x0 = (int) verts[i-1].x, y0 = (int) verts[i-1].y;
4319 int x1 = (int) verts[i ].x, y1 = (int) verts[i ].y;
4326 if (verts[i].type == STBTT_vcurve) {
4327 int x0 = (int) verts[i-1].x , y0 = (int) verts[i-1].y ;
4328 int x1 = (int) verts[
[all...]
/third_party/skia/bench/
H A DVertexColorSpaceBench.cpp207 void* verts = target->makeVertexSpace(vertexStride, kVertexCount, &vertexBuffer, variable
209 if (!verts) {
220 V* v = (V*)verts;
239 V* v = (V*)verts;
252 V* v = (V*)verts;

Completed in 30 milliseconds

123