Searched refs:safeMath (Results 1 – 2 of 2) sorted by relevance
1181 SkSafeMath safeMath; in validate_run_count() local1183 sum = safeMath.addInt(sum, ySpanCount); in validate_run_count()1184 sum = safeMath.addInt(sum, ySpanCount); in validate_run_count()1185 sum = safeMath.addInt(sum, ySpanCount); in validate_run_count()1186 sum = safeMath.addInt(sum, intervalCount); in validate_run_count()1187 sum = safeMath.addInt(sum, intervalCount); in validate_run_count()1188 return safeMath && sum == runCount; in validate_run_count()
202 SkSafeMath safeMath; in makeSpace() local203 size_t alignedSize = safeMath.add(pad, size); in makeSpace()204 if (!safeMath.ok()) { in makeSpace()