Lines Matching defs:k4
26 static SkArithmeticMode_scalar* Create(SkScalar k1, SkScalar k2, SkScalar k3, SkScalar k4,
28 return SkNEW_ARGS(SkArithmeticMode_scalar, (k1, k2, k3, k4, enforcePMColor));
43 SkArithmeticMode_scalar(SkScalar k1, SkScalar k2, SkScalar k3, SkScalar k4, bool enforcePMColor) {
47 fK[3] = k4;
80 const SkScalar k4 = buffer.readScalar();
82 return Create(k1, k2, k3, k4, enforcePMColor);
94 static int arith(SkScalar k1, SkScalar k2, SkScalar k3, SkScalar k4,
99 k4;
117 SkScalar k4 = fK[3] * 255;
134 a = arith(k1, k2, k3, k4, sa, da);
135 r = arith(k1, k2, k3, k4, SkGetPackedR32(sc), SkGetPackedR32(dc));
136 g = arith(k1, k2, k3, k4, SkGetPackedG32(sc), SkGetPackedG32(dc));
137 b = arith(k1, k2, k3, k4, SkGetPackedB32(sc), SkGetPackedB32(dc));
159 a = arith(k1, k2, k3, k4, sa, da);
160 r = arith(k1, k2, k3, k4, sr, dr);
161 g = arith(k1, k2, k3, k4, sg, dg);
162 b = arith(k1, k2, k3, k4, sb, db);
165 a = arith(k1, k2, k3, k4, SkGetPackedA32(sc), SkGetPackedA32(dc));
166 r = arith(k1, k2, k3, k4, SkGetPackedR32(sc), SkGetPackedR32(dc));
167 g = arith(k1, k2, k3, k4, SkGetPackedG32(sc), SkGetPackedG32(dc));
168 b = arith(k1, k2, k3, k4, SkGetPackedB32(sc), SkGetPackedB32(dc));
221 SkScalar k3, SkScalar k4,
230 int32_t i4 = toDot8(k4);
243 return SkArithmeticMode_scalar::Create(k1, k2, k3, k4, enforcePMColor);
279 static GrFragmentProcessor* Create(float k1, float k2, float k3, float k4, bool enforcePMColor,
281 return SkNEW_ARGS(GrArithmeticEffect, (k1, k2, k3, k4, enforcePMColor, background));
297 float k4() const { return fK4; }
303 GrArithmeticEffect(float k1, float k2, float k3, float k4, bool enforcePMColor,
317 GrArithmeticEffect::GrArithmeticEffect(float k1, float k2, float k3, float k4,
319 : fK1(k1), fK2(k2), fK3(k3), fK4(k4), fEnforcePMColor(enforcePMColor) {
415 pdman.set4f(fKUni, arith.k1(), arith.k2(), arith.k3(), arith.k4());
436 float k4 = rand->nextF();
439 return SkNEW_ARGS(GrArithmeticEffect, (k1, k2, k3, k4, enforcePMColor, NULL));