Lines Matching full:thresholds
175 // simplification is worth it. It is assumed thresholds are provided in increasing value, in make_unrolled_colorizer()
274 const SkScalar* thresholds) { in make_looping_colorizer() argument
306 "uniform half4 thresholds[%d];" in make_looping_colorizer()
313 // Choose a chunk from thresholds via binary search in a loop. in make_looping_colorizer()
318 "if (t < thresholds[chunk].w) {" in make_looping_colorizer()
328 "if (t < thresholds[chunk].y) {" in make_looping_colorizer()
329 "pos = (t < thresholds[chunk].x) ? 0 : 1;" in make_looping_colorizer()
331 "pos = (t < thresholds[chunk].z) ? 2 : 3;" in make_looping_colorizer()
338 , /* thresholds: */ intervalChunks, in make_looping_colorizer()
353 "thresholds", SkSpan((const SkV4*)thresholds, intervalChunks), in make_looping_colorizer()
358 // Converts an input array of {colors, positions} into an array of {scales, biases, thresholds}.
412 SkScalar thresholds[kMaxUnrolledIntervalCount] = {}; in make_unrolled_binary_colorizer() local
414 kMaxUnrolledIntervalCount, scales, biases, thresholds); in make_unrolled_binary_colorizer()
419 SkRect thresholds1_7 = {thresholds[0], thresholds[1], thresholds[2], thresholds[3]}, in make_unrolled_binary_colorizer()
420 thresholds9_13 = {thresholds[4], thresholds[5], thresholds[6], 0.0}; in make_unrolled_binary_colorizer()
435 SkScalar thresholds[kMaxLoopingIntervalCount] = {}; in make_looping_binary_colorizer() local
437 kMaxLoopingIntervalCount, scales, biases, thresholds); in make_looping_binary_colorizer()
448 thresholds[intervalCount] = thresholds[intervalCount - 1]; in make_looping_binary_colorizer()
453 return make_looping_colorizer(intervalCount, scales, biases, thresholds); in make_looping_binary_colorizer()
491 // quite large when thresholds are close (but still outside the hardstop limit). If float in make_uniform_colorizer()
492 // isn't 32-bit, output can be incorrect if the thresholds are too close together. However, in make_uniform_colorizer()
494 // hardware when the thresholds are not ill-conditioned. in make_uniform_colorizer()
496 // Could run into problems. Check if thresholds are close together (with a limit of .01, in make_uniform_colorizer()