Lines Matching refs:k1
15 SkArithmeticMode_scalar(SkScalar k1, SkScalar k2, SkScalar k3, SkScalar k4) {
16 fK[0] = k1;
43 static int arith(SkScalar k1, SkScalar k2, SkScalar k3, SkScalar k4,
45 SkScalar result = SkScalarMul(k1, src * dst) +
63 SkScalar k1 = fK[0] / 255;
81 a = arith(k1, k2, k3, k4, sa, sa);
82 r = arith(k1, k2, k3, k4, SkGetPackedR32(sc), SkGetPackedR32(dc));
83 g = arith(k1, k2, k3, k4, SkGetPackedG32(sc), SkGetPackedG32(dc));
84 b = arith(k1, k2, k3, k4, SkGetPackedB32(sc), SkGetPackedB32(dc));
106 a = arith(k1, k2, k3, k4, sa, sa);
107 r = arith(k1, k2, k3, k4, sr, dr);
108 g = arith(k1, k2, k3, k4, sg, dg);
109 b = arith(k1, k2, k3, k4, sb, db);
170 SkXfermode* SkArithmeticMode::Create(SkScalar k1, SkScalar k2,
172 if (fitsInBits(k1, 8) && fitsInBits(k2, 16) &&
176 int32_t i1 = toDot8(k1);
192 return SkNEW_ARGS(SkArithmeticMode_scalar, (k1, k2, k3, k4));