Home
last modified time | relevance | path

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

/third_party/flutter/skia/samplecode/
DSampleAAGeometry.cpp458 static void add_to_map(SkScalar coverage, int x, int y, uint8_t* distanceMap, int w, int h) { in add_to_map() argument
467 distanceMap[y * w + x] = SkTMax(distanceMap[y * w + x], (uint8_t) byteCoverage); in add_to_map()
1304 bool coverage(SkPoint s, SkPoint e, uint8_t* distanceMap, int w, int h) { in coverage() argument
1315 add_to_map(1 - SkScalarAbs(coverage), x, y, distanceMap, w, h); in coverage()
1321 add_to_map(1 - SkScalarAbs(coverage), x, y, distanceMap, w, h); in coverage()
1327 add_to_map(1 - SkScalarAbs(coverage), x, y, distanceMap, w, h); in coverage()
1334 void quad_coverage(SkPoint pts[3], uint8_t* distanceMap, int w, int h) { in quad_coverage() argument
1337 (void) coverage(pts[0], pts[2], distanceMap, w, h); in quad_coverage()
1342 quad_coverage(&split[0], distanceMap, w, h); in quad_coverage()
1343 quad_coverage(&split[2], distanceMap, w, h); in quad_coverage()
[all …]