Home | History | Annotate | Download | only in gradients

Lines Matching defs:focal

315 // Focal Conical Gradients
322 // and focal point is at the origin.
324 const SkPoint& focal = shader.getStartCenter();
335 matrix.mapPoints(&focalTrans, &focal, 1);
348 // If the focal point is touching the edge of the circle it will
390 return "Two-Point Conical Gradient Focal Outside";
394 SkScalar focal() const { return fFocalX; }
479 // Need to make sure the centers are not the same or else focal point will be inside
483 // Below makes sure that the focal point is not contained within circle two
528 // t = p.x * focal.x +/- sqrt(p.x^2 + (1 - focal.x^2) * p.y^2)
566 SkScalar focal = data.focal();
568 if (fCachedFocal != focal) {
569 SkScalar oneMinus2F = 1.f - SkScalarMul(focal, focal);
572 SkScalarToFloat(focal),
577 fCachedFocal = focal;
606 return "Two-Point Conical Gradient Focal Inside";
609 SkScalar focal() const { return fFocalX; }
690 // Below makes sure radius2 is larger enouch such that the focal point
728 // this is the distance along x-axis from the end center to focal point in
730 GrGLSLShaderVar focal = uniformHandler->getUniformVariable(fFocalUni);
739 coords2D, focal.c_str(), coords2D);
755 SkScalar focal = data.focal();
757 if (fCachedFocal != focal) {
758 pdman.set1f(fFocalUni, SkScalarToFloat(focal));
759 fCachedFocal = focal;
779 // Returns focal distance along x-axis in transformed coords