Lines Matching full:path
295 // walk around the path polygon, generate outer ring and connect to inner ring
894 SkAmbientShadowTessellator(const SkPath& path, const SkMatrix& ctm,
898 bool computePathPolygon(const SkPath& path, const SkMatrix& ctm);
903 SkAmbientShadowTessellator::SkAmbientShadowTessellator(const SkPath& path,
907 : INHERITED(zPlaneParams, path.getBounds(), transparent) {
913 inset = SkTPin(inset, 0.0f, std::min(path.getBounds().width(),
914 path.getBounds().height()));
916 if (!this->computePathPolygon(path, ctm)) {
927 fPositions.setReserve(4 * path.countPoints());
928 fColors.setReserve(4 * path.countPoints());
931 fIndices.setReserve(12 * path.countPoints());
940 bool SkAmbientShadowTessellator::computePathPolygon(const SkPath& path, const SkMatrix& ctm) {
941 fPathPolygon.setReserve(path.countPoints());
943 // walk around the path, tessellate and generate outer ring
944 // if original path is transparent, will accumulate sum of points for centroid
945 SkPath::Iter iter(path, true);
988 SkSpotShadowTessellator(const SkPath& path, const SkMatrix& ctm,
993 bool computeClipAndPathPolygons(const SkPath& path, const SkMatrix& ctm,
1000 SkSpotShadowTessellator::SkSpotShadowTessellator(const SkPath& path, const SkMatrix& ctm,
1004 : INHERITED(zPlaneParams, path.getBounds(), transparent) {
1010 path.getBounds(), directional,
1017 if (!this->computeClipAndPathPolygons(path, ctm, shadowTransform)) {
1030 fPositions.setReserve(5 * path.countPoints());
1031 fColors.setReserve(5 * path.countPoints());
1034 fIndices.setReserve(15 * path.countPoints());
1049 bool SkSpotShadowTessellator::computeClipAndPathPolygons(const SkPath& path, const SkMatrix& ctm,
1052 fPathPolygon.setReserve(path.countPoints());
1053 fClipPolygon.setReserve(path.countPoints());
1055 // Walk around the path and compute clip polygon and path polygon.
1058 SkPath::Iter iter(path, true);
1147 sk_sp<SkVertices> SkShadowTessellator::MakeAmbient(const SkPath& path, const SkMatrix& ctm,
1149 if (!ctm.mapRect(path.getBounds()).isFinite() || !zPlane.isFinite()) {
1152 SkAmbientShadowTessellator ambientTess(path, ctm, zPlane, transparent);
1156 sk_sp<SkVertices> SkShadowTessellator::MakeSpot(const SkPath& path, const SkMatrix& ctm,
1160 if (!ctm.mapRect(path.getBounds()).isFinite() || !zPlane.isFinite() ||
1165 SkSpotShadowTessellator spotTess(path, ctm, zPlane, lightPos, lightRadius, transparent,