Searched refs:invDx (Results 1 – 2 of 2) sorted by relevance
/external/skia/src/effects/gradients/ |
D | SkLinearGradient.cpp | 618 float fx, float dx, float invDx, in shade4_dx_clamp() argument 629 int n = SkTMin(SkFloatToIntFloor(-fx * invDx) + 1, count); in shade4_dx_clamp() 641 int n = SkTMin(SkFloatToIntFloor((1 - fx) * invDx) + 1, count); in shade4_dx_clamp() 692 n = SkTMin((int)((p1 - fx) * invDx) + 1, count); in shade4_dx_clamp() 694 n = SkTMin((int)((p0 - fx) * invDx) + 1, count); in shade4_dx_clamp() 745 const float invDx = 1 / dx; in shade4_clamp() local 760 this->shade4_dx_clamp<true, true>(dstC, count, fx, dx, invDx, dither); in shade4_clamp() 762 this->shade4_dx_clamp<false, true>(dstC, count, fx, dx, invDx, dither); in shade4_clamp() 766 this->shade4_dx_clamp<true, false>(dstC, count, fx, dx, invDx, dither); in shade4_clamp() 768 this->shade4_dx_clamp<false, false>(dstC, count, fx, dx, invDx, dither); in shade4_clamp()
|
D | SkLinearGradient.h | 55 float invDx, const float dither[2]);
|