11 int index =
state->fCurrIndex;
12 if (index + 3 >
state->fCount) {
15 state->f0 = index + 0;
16 state->f1 = index + 1;
17 state->f2 = index + 2;
18 state->fCurrIndex = index + 3;
23 const uint16_t* indices =
state->fIndices;
24 int index =
state->fCurrIndex;
25 if (index + 3 >
state->fCount) {
28 state->f0 = indices[index + 0];
29 state->f1 = indices[index + 1];
30 state->f2 = indices[index + 2];
31 state->fCurrIndex = index + 3;
36 int index =
state->fCurrIndex;
37 if (index + 3 >
state->fCount) {
40 state->f2 = index + 2;
42 state->f0 = index + 1;
43 state->f1 = index + 0;
45 state->f0 = index + 0;
46 state->f1 = index + 1;
48 state->fCurrIndex = index + 1;
53 const uint16_t* indices =
state->fIndices;
54 int index =
state->fCurrIndex;
55 if (index + 3 >
state->fCount) {
58 state->f2 = indices[index + 2];
60 state->f0 = indices[index + 1];
61 state->f1 = indices[index + 0];
63 state->f0 = indices[index + 0];
64 state->f1 = indices[index + 1];
66 state->fCurrIndex = index + 1;
71 int index =
state->fCurrIndex;
72 if (index + 3 >
state->fCount) {
76 state->f1 = index + 1;
77 state->f2 = index + 2;
78 state->fCurrIndex = index + 1;
83 const uint16_t* indices =
state->fIndices;
84 int index =
state->fCurrIndex;
85 if (index + 3 >
state->fCount) {
88 state->f0 = indices[0];
89 state->f1 = indices[index + 1];
90 state->f2 = indices[index + 2];
91 state->fCurrIndex = index + 1;
98 return fIndices ? TrianglesX : Triangles;
100 return fIndices ? TriangleStripX : TriangleStrip;
102 return fIndices ? TriangleFanX : TriangleFan;
@ kTriangleStrip_VertexMode
@ kTriangleFan_VertexMode
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
Proc chooseProc(SkVertices::VertexMode mode)
bool(* Proc)(VertState *)