Searched refs:safeMath (Results 1 – 4 of 4) sorted by relevance
/external/skqp/src/gpu/ |
D | GrBufferAllocPool.cpp | 142 SkSafeMath safeMath; in makeSpace() local 143 size_t alignedSize = safeMath.add(pad, size); in makeSpace() 144 if (!safeMath.ok()) { in makeSpace()
|
/external/skqp/src/core/ |
D | SkRegion.cpp | 1183 SkSafeMath safeMath; in validate_run_count() local 1185 sum = safeMath.addInt(sum, ySpanCount); in validate_run_count() 1186 sum = safeMath.addInt(sum, ySpanCount); in validate_run_count() 1187 sum = safeMath.addInt(sum, ySpanCount); in validate_run_count() 1188 sum = safeMath.addInt(sum, intervalCount); in validate_run_count() 1189 sum = safeMath.addInt(sum, intervalCount); in validate_run_count() 1190 return safeMath && sum == runCount; in validate_run_count()
|
/external/skia/src/core/ |
D | SkRegion.cpp | 1181 SkSafeMath safeMath; in validate_run_count() local 1183 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()
|
/external/skia/src/gpu/ |
D | GrBufferAllocPool.cpp | 204 SkSafeMath safeMath; in makeSpace() local 205 size_t alignedSize = safeMath.add(pad, size); in makeSpace() 206 if (!safeMath.ok()) { in makeSpace()
|