Lines Matching refs:safe
32 SkSafeMath safe; in Sizes() local
34 fVSize = safe.mul(vertexCount, sizeof(SkPoint)); in Sizes()
35 fTSize = hasTexs ? safe.mul(vertexCount, sizeof(SkPoint)) : 0; in Sizes()
36 fCSize = hasColors ? safe.mul(vertexCount, sizeof(SkColor)) : 0; in Sizes()
37 fBISize = hasBones ? safe.mul(vertexCount, sizeof(BoneIndices)) : 0; in Sizes()
38 fBWSize = hasBones ? safe.mul(vertexCount, sizeof(BoneWeights)) : 0; in Sizes()
41 fISize = safe.mul(indexCount, sizeof(uint16_t)); in Sizes()
60 fISize = safe.mul(numFanTris, 3 * sizeof(uint16_t)); in Sizes()
63 fTotal = safe.add(sizeof(SkVertices), in Sizes()
64 safe.add(fVSize, in Sizes()
65 safe.add(fTSize, in Sizes()
66 safe.add(fCSize, in Sizes()
67 safe.add(fBISize, in Sizes()
68 safe.add(fBWSize, in Sizes()
71 if (safe.ok()) { in Sizes()
383 SkSafeRange safe; in Decode() local
386 const int vertexCount = safe.checkGE(reader.readInt(), 0); in Decode()
387 const int indexCount = safe.checkGE(reader.readInt(), 0); in Decode()
388 const VertexMode mode = safe.checkLE<VertexMode>(packed & kMode_Mask, in Decode()
390 if (!safe) { in Decode()