• Home
  • Raw
  • Download

Lines Matching refs:SkPaint

18     fCap            = SkPaint::kDefault_Cap;  in SkStrokeRec()
19 fJoin = SkPaint::kDefault_Join; in SkStrokeRec()
23 SkStrokeRec::SkStrokeRec(const SkPaint& paint, SkScalar resScale) { in SkStrokeRec()
27 SkStrokeRec::SkStrokeRec(const SkPaint& paint, SkPaint::Style styleOverride, SkScalar resScale) { in SkStrokeRec()
31 void SkStrokeRec::init(const SkPaint& paint, SkPaint::Style style, SkScalar resScale) { in init()
35 case SkPaint::kFill_Style: in init()
39 case SkPaint::kStroke_Style: in init()
43 case SkPaint::kStrokeAndFill_Style: in init()
111 stroker.setCap((SkPaint::Cap)fCap); in applyToPath()
112 stroker.setJoin((SkPaint::Join)fJoin); in applyToPath()
125 void SkStrokeRec::applyToPaint(SkPaint* paint) const { in applyToPaint()
127 paint->setStyle(SkPaint::kFill_Style); in applyToPaint()
131 paint->setStyle(fStrokeAndFill ? SkPaint::kStrokeAndFill_Style : SkPaint::kStroke_Style); in applyToPaint()
134 paint->setStrokeCap((SkPaint::Cap)fCap); in applyToPaint()
135 paint->setStrokeJoin((SkPaint::Join)fJoin); in applyToPaint()
139 return GetInflationRadius((SkPaint::Join)fJoin, fMiterLimit, (SkPaint::Cap)fCap, fWidth); in getInflationRadius()
142 SkScalar SkStrokeRec::GetInflationRadius(const SkPaint& paint, SkPaint::Style style) { in GetInflationRadius()
143 SkScalar width = SkPaint::kFill_Style == style ? -SK_Scalar1 : paint.getStrokeWidth(); in GetInflationRadius()
149 SkScalar SkStrokeRec::GetInflationRadius(SkPaint::Join join, SkScalar miterLimit, SkPaint::Cap cap, in GetInflationRadius()
162 if (SkPaint::kMiter_Join == join) { in GetInflationRadius()
165 if (SkPaint::kSquare_Cap == cap) { in GetInflationRadius()