16#define kStrokeRec_FillStyleWidth (-SK_Scalar1)
24 fStrokeAndFill =
false;
32 this->init(
paint, styleOverride, resScale);
41 fStrokeAndFill =
false;
44 fWidth =
paint.getStrokeWidth();
45 fStrokeAndFill =
false;
48 if (0 ==
paint.getStrokeWidth()) {
51 fStrokeAndFill =
false;
53 fWidth =
paint.getStrokeWidth();
54 fStrokeAndFill =
true;
61 fStrokeAndFill =
false;
66 fMiterLimit =
paint.getStrokeMiter();
67 fCap =
paint.getStrokeCap();
68 fJoin =
paint.getStrokeJoin();
74 }
else if (0 == fWidth) {
83 fStrokeAndFill =
false;
88 fStrokeAndFill =
false;
92 if (strokeAndFill && (0 ==
width)) {
97 fStrokeAndFill = strokeAndFill;
103 bool gDebugStrokerErrorSet =
false;
119 stroker.
setResScale(gDebugStrokerErrorSet ? gDebugStrokerError : fResScale);
134 paint->setStrokeWidth(fWidth);
135 paint->setStrokeMiter(fMiterLimit);
165 multiplier =
std::max(multiplier, miterLimit);
static const int strokeWidth
#define SkPaintDefaults_MiterLimit
#define SkDEBUGFAIL(message)
#define kStrokeRec_FillStyleWidth
@ kDefault_Cap
equivalent to kButt_Cap
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
@ kStrokeAndFill_Style
sets to stroke and fill geometry
@ kDefault_Join
equivalent to kMiter_Join
@ kMiter_Join
extends to miter limit
void setStrokeStyle(SkScalar width, bool strokeAndFill=false)
static SkScalar GetInflationRadius(const SkPaint &, SkPaint::Style)
SkScalar getInflationRadius() const
SkStrokeRec(InitStyle style)
bool applyToPath(SkPath *dst, const SkPath &src) const
void applyToPaint(SkPaint *paint) const
void strokePath(const SkPath &path, SkPath *) const
void setCap(SkPaint::Cap)
void setDoFill(bool doFill)
void setResScale(SkScalar rs)
void setJoin(SkPaint::Join)
void setMiterLimit(SkScalar)
static float max(float r, float g, float b)
static SkString join(const CommandLineFlags::StringArray &)