/external/skia/src/gpu/ccpr/ |
GrCCStrokeGeometry.cpp | 143 Sk2f tan0 = p1 - p0; local 148 if ((tan0.abs() < SK_ScalarNearlyZero).allTrue() || // p0 ~= p1 155 normalize2(tan0, tan1, normals); 178 leftTan = tan0; 260 Sk2f tan0 = p1 - p0; 264 if ((tan0.abs() < SK_ScalarNearlyZero).allTrue()) { // p0 ~= p1 266 tan0 = p2 - p0; 267 if ((tan0.abs() < SK_ScalarNearlyZero).allTrue()) { // p0 ~= p1 ~= p2 283 normalize2(tan0, tan1, normals); 308 leftTan = tan0; [all...] |
GrCCFillGeometry.cpp | 119 static inline bool is_convex_curve_monotonic(const Sk2f& startPt, const Sk2f& tan0, 122 float dot0 = dot(tan0, v); 154 Sk2f tan0 = p1 - p0; local 158 if (is_convex_curve_monotonic(p0, tan0, p2, tan1)) { 164 // tangent angle is halfway between tan0 and tan1. 165 Sk2f n = normalize(tan0) - normalize(tan1); 172 // = | 2*t 1 | * | tan1 - tan0 | * | n | 173 // | 2*tan0 | | . | 175 // = 2*t * ((tan1 - tan0) dot n) + (2*tan0 dot n 483 Sk2f tan0, tan1, c; local 590 Sk2f tan0, tan1; local 700 Sk2f tan0 = p1 - p0; local [all...] |
/external/skqp/src/gpu/ccpr/ |
GrCCStrokeGeometry.cpp | 143 Sk2f tan0 = p1 - p0; local 148 if ((tan0.abs() < SK_ScalarNearlyZero).allTrue() || // p0 ~= p1 155 normalize2(tan0, tan1, normals); 178 leftTan = tan0; 260 Sk2f tan0 = p1 - p0; 264 if ((tan0.abs() < SK_ScalarNearlyZero).allTrue()) { // p0 ~= p1 266 tan0 = p2 - p0; 267 if ((tan0.abs() < SK_ScalarNearlyZero).allTrue()) { // p0 ~= p1 ~= p2 283 normalize2(tan0, tan1, normals); 308 leftTan = tan0; [all...] |
GrCCFillGeometry.cpp | 119 static inline bool is_convex_curve_monotonic(const Sk2f& startPt, const Sk2f& tan0, 122 float dot0 = dot(tan0, v); 154 Sk2f tan0 = p1 - p0; local 158 if (is_convex_curve_monotonic(p0, tan0, p2, tan1)) { 164 // tangent angle is halfway between tan0 and tan1. 165 Sk2f n = normalize(tan0) - normalize(tan1); 172 // = | 2*t 1 | * | tan1 - tan0 | * | n | 173 // | 2*tan0 | | . | 175 // = 2*t * ((tan1 - tan0) dot n) + (2*tan0 dot n 483 Sk2f tan0, tan1, c; local 590 Sk2f tan0, tan1; local 700 Sk2f tan0 = p1 - p0; local [all...] |