Lines Matching refs:k1
7 SkArithmeticMode_scalar(SkScalar k1, SkScalar k2, SkScalar k3, SkScalar k4) {
8 fK[0] = k1;
39 static int arith(SkScalar k1, SkScalar k2, SkScalar k3, SkScalar k4,
41 SkScalar result = SkScalarMul(k1, src * dst) +
59 SkScalar k1 = fK[0] / 255;
77 a = arith(k1, k2, k3, k4, sa, sa);
78 r = arith(k1, k2, k3, k4, SkGetPackedR32(sc), SkGetPackedR32(dc));
79 g = arith(k1, k2, k3, k4, SkGetPackedG32(sc), SkGetPackedG32(dc));
80 b = arith(k1, k2, k3, k4, SkGetPackedB32(sc), SkGetPackedB32(dc));
102 a = arith(k1, k2, k3, k4, sa, sa);
103 r = arith(k1, k2, k3, k4, sr, dr);
104 g = arith(k1, k2, k3, k4, sg, dg);
105 b = arith(k1, k2, k3, k4, sb, db);
153 SkXfermode* SkArithmeticMode::Create(SkScalar k1, SkScalar k2,
155 if (fitsInBits(k1, 8) && fitsInBits(k2, 16) &&
158 int32_t i1 = toDot8(k1);
175 return SkNEW_ARGS(SkArithmeticMode_scalar, (k1, k2, k3, k4));