Lines Matching refs:positions

37         const SkScalar* positions, int count, bool premul, const GrFPArgs& args) {
53 gCache.getGradient(colors, positions, count, colorType, alphaType, &bitmap);
147 // The 7 threshold positions that define the boundaries of the 8 intervals (excluding t = 0,
333 // Converts an input array of {colors, positions} into an array of {scales, biases, thresholds}.
342 // Depending on how the positions resolve into hard stops or regular stops, the number of
343 // intervals specified by the number of colors/positions can change. For instance, a plain
379 const SkPMColor4f* colors, const SkScalar* positions, int count) {
388 int intervalCount = build_intervals(count, colors, positions,
401 const SkScalar* positions,
411 int intervalCount = build_intervals(count, colors, positions,
431 // Analyze the shader's color stops and positions and chooses an appropriate colorizer to represent
434 const SkScalar* positions,
444 bool bottomHardStop = SkScalarNearlyEqual(positions[0], positions[1]);
446 bool topHardStop = SkScalarNearlyEqual(positions[count - 2], positions[count - 1]);
450 positions++;
475 SkScalar dt = SkScalarAbs(positions[i] - positions[i + 1]);
492 positions[1]);
494 if (count == 4 && SkScalarNearlyEqual(positions[1], positions[2])) {
498 positions[1]);
515 ? make_looping_binary_colorizer(colors, positions, count)
516 : make_unrolled_binary_colorizer(colors, positions, count);
524 return make_textured_colorizer(colors, positions, count, premul, args);
708 // SkGradientShader stores positions implicitly when they are evenly spaced, but the getPos()
710 // requires lots of position tests, calculate all of the positions up front if needed.
712 SkScalar* positions;
714 positions = shader.fOrigPos;
721 positions = implicitPos.begin();
726 colors.get(), positions, shader.fColorCount, inputPremul, args);