Lines Matching refs:k1
20 SkArithmeticMode_scalar(SkScalar k1, SkScalar k2, SkScalar k3, SkScalar k4, in SkArithmeticMode_scalar() argument
22 fK[0] = k1; in SkArithmeticMode_scalar()
58 const SkScalar k1 = buffer.readScalar(); in CreateProc() local
63 return SkArithmeticMode::Create(k1, k2, k3, k4, enforcePMColor); in CreateProc()
75 static int arith(SkScalar k1, SkScalar k2, SkScalar k3, SkScalar k4, in arith() argument
77 SkScalar result = SkScalarMul(k1, src * dst) + in arith()
91 SkScalar k1 = fK[0] / 255; in xfer32() local
103 a = arith(k1, k2, k3, k4, SkGetPackedA32(sc), SkGetPackedA32(dc)); in xfer32()
104 r = arith(k1, k2, k3, k4, SkGetPackedR32(sc), SkGetPackedR32(dc)); in xfer32()
105 g = arith(k1, k2, k3, k4, SkGetPackedG32(sc), SkGetPackedG32(dc)); in xfer32()
106 b = arith(k1, k2, k3, k4, SkGetPackedB32(sc), SkGetPackedB32(dc)); in xfer32()
140 SkXfermode* SkArithmeticMode::Create(SkScalar k1, SkScalar k2, in Create() argument
143 if (SkScalarNearlyZero(k1) && SkScalarNearlyEqual(k2, SK_Scalar1) && in Create()
146 } else if (SkScalarNearlyZero(k1) && SkScalarNearlyZero(k2) && in Create()
151 return new SkArithmeticMode_scalar(k1, k2, k3, k4, enforcePMColor); in Create()