Home
last modified time | relevance | path

Searched defs:FocalData (Results 1 – 2 of 2) sorted by relevance

/external/skqp/src/shaders/gradients/
DSkTwoPointConicalGradient.h18 struct FocalData { struct
19 SkScalar fR1; // r1 after mapping focal point to (0, 0)
20 SkScalar fFocalX; // f
21 bool fIsSwapped; // whether we swapped r0, r1
34 bool isFocalOnCircle() const { return SkScalarNearlyZero(1 - fR1); } in isFocalOnCircle()
36 bool isSwapped() const { return fIsSwapped; } in isSwapped()
37 bool isWellBehaved() const { return !this->isFocalOnCircle() && fR1 > 1; } in isWellBehaved()
38 bool isNativelyFocal() const { return SkScalarNearlyZero(fFocalX); } in isNativelyFocal()
/external/skia/src/shaders/gradients/
DSkTwoPointConicalGradient.h18 struct FocalData { struct
19 SkScalar fR1; // r1 after mapping focal point to (0, 0)
20 SkScalar fFocalX; // f
21 bool fIsSwapped; // whether we swapped r0, r1
34 bool isFocalOnCircle() const { return SkScalarNearlyZero(1 - fR1); } in isFocalOnCircle()
36 bool isSwapped() const { return fIsSwapped; } in isSwapped()
37 bool isWellBehaved() const { return !this->isFocalOnCircle() && fR1 > 1; } in isWellBehaved()
38 bool isNativelyFocal() const { return SkScalarNearlyZero(fFocalX); } in isNativelyFocal()