Lines Matching refs:safe
42 SkSafeMath safe; in Sizes() local
44 fVSize = safe.mul(desc.fVertexCount, sizeof(SkPoint)); in Sizes()
45 fTSize = desc.fHasTexs ? safe.mul(desc.fVertexCount, sizeof(SkPoint)) : 0; in Sizes()
46 fCSize = desc.fHasColors ? safe.mul(desc.fVertexCount, sizeof(SkColor)) : 0; in Sizes()
49 fISize = safe.mul(desc.fIndexCount, sizeof(uint16_t)); in Sizes()
68 fISize = safe.mul(numFanTris, 3 * sizeof(uint16_t)); in Sizes()
71 fTotal = safe.add(sizeof(SkVertices), in Sizes()
72 safe.add(fVSize, in Sizes()
73 safe.add(fTSize, in Sizes()
74 safe.add(fCSize, in Sizes()
77 if (safe.ok()) { in Sizes()
276 SkSafeRange safe; in Decode() local
280 const int vertexCount = safe.checkGE(buffer.readInt(), 0); in Decode()
281 const int indexCount = safe.checkGE(buffer.readInt(), 0); in Decode()
282 const int attrCount = hasCustomData ? safe.checkGE(buffer.readInt(), 0) : 0; in Decode()
283 const SkVertices::VertexMode mode = safe.checkLE<SkVertices::VertexMode>( in Decode()
290 if (!safe || !buffer.isValid() || attrCount) { in Decode()