Lines Matching +full:cap +full:- +full:std
4 * Use of this source code is governed by a BSD-style license that can be
17 return sk_sp<SkPathEffect>(new SkOpPE(std::move(one), std::move(two), op)); in Make()
21 : fOne(std::move(one)), fTwo(std::move(two)), fOp(op) {} in SkOpPE()
27 if (!fOne->filterPath(&one, src, rec, cull, ctm)) { in onFilterPath()
34 if (!fTwo->filterPath(&two, src, rec, cull, ctm)) { in onFilterPath()
45 return (!SkToBool(fOne) || as_PEB(fOne)->computeFastBounds(nullptr)) && in computeFastBounds()
46 (!SkToBool(fTwo) || as_PEB(fTwo)->computeFastBounds(nullptr)); in computeFastBounds()
51 if (fOne && !as_PEB(fOne)->computeFastBounds(bounds)) { in computeFastBounds()
54 if (fTwo && !as_PEB(fTwo)->computeFastBounds(&b2)) { in computeFastBounds()
60 if (!bounds->intersect(b2)) { in computeFastBounds()
61 bounds->setEmpty(); in computeFastBounds()
65 // (one - two) conservatively leaves one's bounds unmodified in computeFastBounds()
68 // (two - one) conservatively leaves two's bounds unmodified in computeFastBounds()
74 bounds->join(b2); in computeFastBounds()
91 return buffer.isValid() ? SkMergePathEffect::Make(std::move(one), std::move(two), op) : nullptr; in CreateProc()
132 sk_sp<SkPathEffect> SkStrokePathEffect::Make(SkScalar width, SkPaint::Join join, SkPaint::Cap cap, in Make() argument
137 return sk_sp<SkPathEffect>(new SkStrokePE(width, join, cap, miter)); in Make()
140 SkStrokePE::SkStrokePE(SkScalar width, SkPaint::Join join, SkPaint::Cap cap, SkScalar miter) in SkStrokePE() argument
141 : fWidth(width), fMiter(miter), fJoin(join), fCap(cap) {} in SkStrokePE()
156 bounds->outset(rec.getInflationRadius(), rec.getInflationRadius()); in computeFastBounds()
172 SkPaint::Cap cap = buffer.read32LE(SkPaint::kLast_Cap); in CreateProc() local
173 return buffer.isValid() ? SkStrokePathEffect::Make(width, join, cap, miter) : nullptr; in CreateProc()
201 // This one is weird, since we exist to allow this paint-style to go away. If we see it, in onFilterPath()
203 if (rec->getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in onFilterPath()
208 if (rec->getStyle() == SkStrokeRec::kStroke_Style) { in onFilterPath()
209 if (!rec->applyToPath(dst, src)) { in onFilterPath()
214 dst->reverseAddPath(src); in onFilterPath()
216 dst->addPath(src); in onFilterPath()
221 rec->setFillStyle(); in onFilterPath()