Home
last modified time | relevance | path

Searched refs:distanceMap (Results 1 – 2 of 2) sorted by relevance

/external/skqp/samplecode/
DSampleAAGeometry.cpp460 static void add_to_map(SkScalar coverage, int x, int y, uint8_t* distanceMap, int w, int h) { in add_to_map() argument
469 distanceMap[y * w + x] = SkTMax(distanceMap[y * w + x], (uint8_t) byteCoverage); in add_to_map()
1309 bool coverage(SkPoint s, SkPoint e, uint8_t* distanceMap, int w, int h) { in coverage() argument
1320 add_to_map(1 - SkScalarAbs(coverage), x, y, distanceMap, w, h); in coverage()
1326 add_to_map(1 - SkScalarAbs(coverage), x, y, distanceMap, w, h); in coverage()
1332 add_to_map(1 - SkScalarAbs(coverage), x, y, distanceMap, w, h); in coverage()
1339 void quad_coverage(SkPoint pts[3], uint8_t* distanceMap, int w, int h) { in quad_coverage() argument
1342 (void) coverage(pts[0], pts[2], distanceMap, w, h); in quad_coverage()
1347 quad_coverage(&split[0], distanceMap, w, h); in quad_coverage()
1348 quad_coverage(&split[2], distanceMap, w, h); in quad_coverage()
[all …]
/external/skia/samplecode/
DSampleAAGeometry.cpp460 static void add_to_map(SkScalar coverage, int x, int y, uint8_t* distanceMap, int w, int h) { in add_to_map() argument
469 distanceMap[y * w + x] = SkTMax(distanceMap[y * w + x], (uint8_t) byteCoverage); in add_to_map()
1309 bool coverage(SkPoint s, SkPoint e, uint8_t* distanceMap, int w, int h) { in coverage() argument
1320 add_to_map(1 - SkScalarAbs(coverage), x, y, distanceMap, w, h); in coverage()
1326 add_to_map(1 - SkScalarAbs(coverage), x, y, distanceMap, w, h); in coverage()
1332 add_to_map(1 - SkScalarAbs(coverage), x, y, distanceMap, w, h); in coverage()
1339 void quad_coverage(SkPoint pts[3], uint8_t* distanceMap, int w, int h) { in quad_coverage() argument
1342 (void) coverage(pts[0], pts[2], distanceMap, w, h); in quad_coverage()
1347 quad_coverage(&split[0], distanceMap, w, h); in quad_coverage()
1348 quad_coverage(&split[2], distanceMap, w, h); in quad_coverage()
[all …]