Definition at line 41 of file SkVertices.cpp.
◆ Sizes()
SkVertices::Sizes::Sizes |
( |
const Desc & |
desc | ) |
|
|
inline |
Definition at line 42 of file SkVertices.cpp.
42 {
44
48
52 int numFanTris = 0;
53 if (
desc.fIndexCount) {
55 numFanTris =
desc.fIndexCount - 2;
56 } else {
57 numFanTris =
desc.fVertexCount - 2;
58
59
60 if (
desc.fVertexCount > (SkTo<int>(UINT16_MAX) + 1)) {
62 return;
63 }
64 }
65 if (numFanTris <= 0) {
67 return;
68 }
69 fISize = safe.
mul(numFanTris, 3 *
sizeof(uint16_t));
70 }
71
77
80 } else {
82 }
83 }
sk_bzero(glyphs, sizeof(glyphs))
size_t add(size_t x, size_t y)
size_t mul(size_t x, size_t y)
@ kTriangleFan_VertexMode
size_t fBuilderTriFanISize
◆ isValid()
bool SkVertices::Sizes::isValid |
( |
| ) |
const |
|
inline |
◆ fArrays
size_t SkVertices::Sizes::fArrays |
◆ fBuilderTriFanISize
size_t SkVertices::Sizes::fBuilderTriFanISize |
◆ fCSize
size_t SkVertices::Sizes::fCSize |
◆ fISize
size_t SkVertices::Sizes::fISize |
◆ fTotal
size_t SkVertices::Sizes::fTotal = 0 |
◆ fTSize
size_t SkVertices::Sizes::fTSize |
◆ fVSize
size_t SkVertices::Sizes::fVSize |
The documentation for this struct was generated from the following file: