Lines Matching defs:const

29     SkBaseShadowTessellator(const SkPoint3& zPlaneParams, const SkRect& bounds, bool transparent);
46 int vertexCount() const { return fPositions.count(); }
47 int indexCount() const { return fIndices.count(); }
50 bool accumulateCentroid(const SkPoint& c, const SkPoint& n);
51 bool checkConvexity(const SkPoint& p0, const SkPoint& p1, const SkPoint& p2);
57 bool clipUmbraPoint(const SkPoint& umbraPoint, const SkPoint& centroid, SkPoint* clipPoint);
58 void addEdge(const SkVector& nextPoint, const SkVector& nextNormal, SkColor umbraColor,
59 const SkTDArray<SkPoint>& umbraPolygon, bool lastEdge, bool doClip);
60 bool addInnerPoint(const SkPoint& pathPoint, SkColor umbraColor,
61 const SkTDArray<SkPoint>& umbraPolygon, int* currUmbraIndex);
62 int getClosestUmbraIndex(const SkPoint& point, const SkTDArray<SkPoint>& umbraPolygon);
66 void stitchConcaveRings(const SkTDArray<SkPoint>& umbraPolygon,
68 const SkTDArray<SkPoint>& penumbraPolygon,
71 void handleLine(const SkPoint& p);
72 void handleLine(const SkMatrix& m, SkPoint* p);
74 void handleQuad(const SkPoint pts[3]);
75 void handleQuad(const SkMatrix& m, SkPoint pts[3]);
77 void handleCubic(const SkMatrix& m, SkPoint pts[4]);
79 void handleConic(const SkMatrix& m, SkPoint pts[3], SkScalar w);
81 bool addArc(const SkVector& nextNormal, SkScalar offset, bool finishArc);
128 static bool compute_normal(const SkPoint& p0, const SkPoint& p1, SkScalar dir,
142 static bool duplicate_pt(const SkPoint& p0, const SkPoint& p1) {
150 static SkScalar perp_dot(const SkPoint& p0, const SkPoint& p1, const SkPoint& p2) {
156 SkBaseShadowTessellator::SkBaseShadowTessellator(const SkPoint3& zPlaneParams, const SkRect& bounds,
178 bool SkBaseShadowTessellator::accumulateCentroid(const SkPoint& curr, const SkPoint& next) {
201 bool SkBaseShadowTessellator::checkConvexity(const SkPoint& p0,
202 const SkPoint& p1,
203 const SkPoint& p2) {
292 const SkTDArray<SkPoint>& umbraPolygon = (inset > SK_ScalarNearlyZero) ? insetPolygon
399 void SkBaseShadowTessellator::addEdge(const SkPoint& nextPoint, const SkVector& nextNormal,
400 SkColor umbraColor, const SkTDArray<SkPoint>& umbraPolygon,
459 bool SkBaseShadowTessellator::clipUmbraPoint(const SkPoint& umbraPoint, const SkPoint& centroid,
491 bool SkBaseShadowTessellator::addInnerPoint(const SkPoint& pathPoint, SkColor umbraColor,
492 const SkTDArray<SkPoint>& umbraPolygon,
523 int SkBaseShadowTessellator::getClosestUmbraIndex(const SkPoint& p,
524 const SkTDArray<SkPoint>& umbraPolygon) {
589 void SkBaseShadowTessellator::stitchConcaveRings(const SkTDArray<SkPoint>& umbraPolygon,
591 const SkTDArray<SkPoint>& penumbraPolygon,
725 static const SkScalar kQuadTolerance = 0.2f;
726 static const SkScalar kCubicTolerance = 0.2f;
728 static const SkScalar kConicTolerance = 0.25f;
731 static void sanitize_point(const SkPoint& in, SkPoint* out) {
736 void SkBaseShadowTessellator::handleLine(const SkPoint& p) {
763 void SkBaseShadowTessellator::handleLine(const SkMatrix& m, SkPoint* p) {
769 void SkBaseShadowTessellator::handleQuad(const SkPoint pts[3]) {
794 void SkBaseShadowTessellator::handleQuad(const SkMatrix& m, SkPoint pts[3]) {
799 void SkBaseShadowTessellator::handleCubic(const SkMatrix& m, SkPoint pts[4]) {
820 void SkBaseShadowTessellator::handleConic(const SkMatrix& m, SkPoint pts[3], SkScalar w) {
826 const SkPoint* quads = quadder.computeQuads(pts, w, kConicTolerance);
840 bool SkBaseShadowTessellator::addArc(const SkVector& nextNormal, SkScalar offset, bool finishArc) {
894 SkAmbientShadowTessellator(const SkPath& path, const SkMatrix& ctm,
895 const SkPoint3& zPlaneParams, bool transparent);
898 bool computePathPolygon(const SkPath& path, const SkMatrix& ctm);
903 SkAmbientShadowTessellator::SkAmbientShadowTessellator(const SkPath& path,
904 const SkMatrix& ctm,
905 const SkPoint3& zPlaneParams,
940 bool SkAmbientShadowTessellator::computePathPolygon(const SkPath& path, const SkMatrix& ctm) {
988 SkSpotShadowTessellator(const SkPath& path, const SkMatrix& ctm,
989 const SkPoint3& zPlaneParams, const SkPoint3& lightPos,
993 bool computeClipAndPathPolygons(const SkPath& path, const SkMatrix& ctm,
994 const SkMatrix& shadowTransform);
995 void addToClip(const SkVector& nextPoint);
1000 SkSpotShadowTessellator::SkSpotShadowTessellator(const SkPath& path, const SkMatrix& ctm,
1001 const SkPoint3& zPlaneParams,
1002 const SkPoint3& lightPos, SkScalar lightRadius,
1049 bool SkSpotShadowTessellator::computeClipAndPathPolygons(const SkPath& path, const SkMatrix& ctm,
1050 const SkMatrix& shadowTransform) {
1139 void SkSpotShadowTessellator::addToClip(const SkPoint& point) {
1147 sk_sp<SkVertices> SkShadowTessellator::MakeAmbient(const SkPath& path, const SkMatrix& ctm,
1148 const SkPoint3& zPlane, bool transparent) {
1156 sk_sp<SkVertices> SkShadowTessellator::MakeSpot(const SkPath& path, const SkMatrix& ctm,
1157 const SkPoint3& zPlane, const SkPoint3& lightPos,