Searched refs:invDx (Results 1 – 2 of 2) sorted by relevance
/external/skia/src/shaders/gradients/ |
D | SkLinearGradient.cpp | 624 float fx, float dx, float invDx, in shade4_dx_clamp() argument 637 int n = SkTMin<uint32_t>(static_cast<uint32_t>(SkFloatToIntFloor(-fx * invDx)) + 1, in shade4_dx_clamp() 653 int n = SkTMin<uint32_t>(static_cast<uint32_t>(SkFloatToIntFloor((1 - fx) * invDx)) + 1, in shade4_dx_clamp() 706 n = SkTMin((int)((p1 - fx) * invDx) + 1, count); in shade4_dx_clamp() 708 n = SkTMin((int)((p0 - fx) * invDx) + 1, count); in shade4_dx_clamp() 771 const float invDx = 1 / dx; in shade4_clamp() local 774 this->shade4_dx_clamp<true, true>(dstC, count, fx, dx, invDx, dither); in shade4_clamp() 776 this->shade4_dx_clamp<false, true>(dstC, count, fx, dx, invDx, dither); in shade4_clamp() 780 this->shade4_dx_clamp<true, false>(dstC, count, fx, dx, invDx, dither); in shade4_clamp() 782 this->shade4_dx_clamp<false, false>(dstC, count, fx, dx, invDx, dither); in shade4_clamp()
|
D | SkLinearGradient.h | 48 float invDx, const float dither[2]);
|