Home
last modified time | relevance | path

Searched refs:fFocalX (Results 1 – 8 of 8) sorted by relevance

/external/skia/src/shaders/gradients/
DSkTwoPointConicalGradient.cpp20 fFocalX = sk_ieee_float_divide(r0, (r0 - r1)); in set()
21 if (SkScalarNearlyZero(fFocalX - 1)) { in set()
26 fFocalX = 0; // because r0 is now 0 in set()
31 const SkPoint from[2] = { {fFocalX, 0}, {1, 0} }; in set()
38 fR1 = r1 / SkScalarAbs(1 - fFocalX); // focalMatrix has a scale of 1/(1-f) in set()
47 matrix->postScale(SkScalarAbs(1 - fFocalX), SkScalarAbs(1 - fFocalX)); // scale |1 - f| in set()
208 ctx->fP1 = fFocalData.fFocalX; in appendGradientStages()
214 } else if (fFocalData.isSwapped() || 1 - fFocalData.fFocalX < 0) { in appendGradientStages()
223 if (1 - fFocalData.fFocalX < 0) { in appendGradientStages()
270 if (fFocalData.isSwapped() || 1 - fFocalData.fFocalX < 0) { in transformT()
[all …]
DSkTwoPointConicalGradient.h19 SkScalar fFocalX; // f member
37 bool isNativelyFocal() const { return SkScalarNearlyZero(fFocalX); } in isNativelyFocal()
/external/skqp/src/shaders/gradients/
DSkTwoPointConicalGradient.cpp20 fFocalX = sk_ieee_float_divide(r0, (r0 - r1)); in set()
21 if (SkScalarNearlyZero(fFocalX - 1)) { in set()
26 fFocalX = 0; // because r0 is now 0 in set()
31 const SkPoint from[2] = { {fFocalX, 0}, {1, 0} }; in set()
38 fR1 = r1 / SkScalarAbs(1 - fFocalX); // focalMatrix has a scale of 1/(1-f) in set()
47 matrix->postScale(SkScalarAbs(1 - fFocalX), SkScalarAbs(1 - fFocalX)); // scale |1 - f| in set()
215 ctx->fP1 = fFocalData.fFocalX; in appendGradientStages()
221 } else if (fFocalData.isSwapped() || 1 - fFocalData.fFocalX < 0) { in appendGradientStages()
230 if (1 - fFocalData.fFocalX < 0) { in appendGradientStages()
DSkTwoPointConicalGradient.h20 SkScalar fFocalX; // f member
38 bool isNativelyFocal() const { return SkScalarNearlyZero(fFocalX); } in isNativelyFocal()
/external/skia/src/gpu/gradients/generated/
DGrTwoPointConicalGradientLayout.cpp272 isRadiusIncreasing = (1 - focalData.fFocalX) > 0; in Make()
274 focalParams.set(1.0 / focalData.fR1, focalData.fFocalX); in Make()
/external/skqp/src/gpu/gradients/
DGrTwoPointConicalGradientLayout.cpp271 isRadiusIncreasing = (1 - focalData.fFocalX) > 0; in Make()
273 focalParams.set(1.0 / focalData.fR1, focalData.fFocalX); in Make()
DGrTwoPointConicalGradientLayout.fp187 isRadiusIncreasing = (1 - focalData.fFocalX) > 0;
189 focalParams.set(1.0 / focalData.fR1, focalData.fFocalX);
/external/skia/src/gpu/gradients/
DGrTwoPointConicalGradientLayout.fp187 isRadiusIncreasing = (1 - focalData.fFocalX) > 0;
189 focalParams.set(1.0 / focalData.fR1, focalData.fFocalX);