Home
last modified time | relevance | path

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

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