Home | History | Annotate | Download | only in gradients

Lines Matching refs:fx

62     matrix->setTranslate(-center.fX, -center.fY);
84 SkFixed fx = SkScalarToFixed(sfx) >> 1;
94 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1);
97 fx += dx;
104 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1);
108 fx += dx;
118 void shadeSpan16_radial(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy,
122 const SkFixed dist = SkFloatToFixed(sk_float_sqrt(fx*fx + fy*fy));
127 fx += dx;
132 void shadeSpan16_radial_mirror(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy,
135 shadeSpan16_radial<mirror_tileproc_nonstatic>(fx, dx, fy, dy, dstC, cache, toggle, count);
138 void shadeSpan16_radial_repeat(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy,
141 shadeSpan16_radial<repeat_tileproc_nonstatic>(fx, dx, fy, dy, dstC, cache, toggle, count);
197 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC,
256 inline bool radial_completely_pinned(int fx, int dx, int fy, int dy) {
259 bool xClamped = (fx >= SK_FixedHalf && dx >= 0) ||
260 (fx <= -SK_FixedHalf && dx <= 0);
267 // Return true if (fx * fy) is always inside the unit circle
270 inline bool no_need_for_radial_pin(int fx, int dx,
273 if (SkAbs32(fx) > 0x7FFF || SkAbs32(fy) > 0x7FFF) {
276 if (fx*fx + fy*fy > 0x7FFF*0x7FFF) {
279 fx += (count - 1) * dx;
281 if (SkAbs32(fx) > 0x7FFF || SkAbs32(fy) > 0x7FFF) {
284 return fx*fx + fy*fy <= 0x7FFF*0x7FFF;
288 fi = (fx * fx + fy * fy) >> (14 + 16 - kSQRT_TABLE_BITS); \
292 fx += dx; \
308 SkFixed fx = SkScalarToFixed(sfx) >> 1;
312 if ((count > 4) && radial_completely_pinned(fx, dx, fy, dy)) {
319 no_need_for_radial_pin(fx, dx, fy, dy, count)) {
336 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1);
342 fx += dx;
346 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1);
353 fx += dx;
364 void shadeSpan_radial(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy,
368 const SkFixed dist = SkFloatToFixed(sk_float_sqrt(fx*fx + fy*fy));
373 fx += dx;
378 void shadeSpan_radial_mirror(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy,
381 shadeSpan_radial<mirror_tileproc_nonstatic>(fx, dx, fy, dy, dstC, cache, count, toggle);
384 void shadeSpan_radial_repeat(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy,
387 shadeSpan_radial<repeat_tileproc_nonstatic>(fx, dx, fy, dy, dstC, cache, count, toggle);
426 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC, cache, count, toggle);
571 str->appendScalar(fCenter.fX);