Home
last modified time | relevance | path

Searched refs:SkPathEffect (Results 1 – 25 of 71) sorted by relevance

123

/external/skia/src/core/
DSkPathEffect.cpp16 bool SkPathEffect::filterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in filterPath()
21 bool SkPathEffect::filterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in filterPath()
41 SkPathEffect::DashType SkPathEffect::asADash(DashInfo* info) const { in asADash()
45 bool SkPathEffect::needsCTM() const { in needsCTM()
59 SkPairPathEffect(sk_sp<SkPathEffect> pe0, sk_sp<SkPathEffect> pe1) in SkPairPathEffect()
72 sk_sp<SkPathEffect> fPE0;
73 sk_sp<SkPathEffect> fPE1;
88 static sk_sp<SkPathEffect> Make(sk_sp<SkPathEffect> outer, sk_sp<SkPathEffect> inner) { in Make()
95 return sk_sp<SkPathEffect>(new SkComposePathEffect(outer, inner)); in Make()
98 SkComposePathEffect(sk_sp<SkPathEffect> outer, sk_sp<SkPathEffect> inner) in SkComposePathEffect()
[all …]
DSkPathEffectBase.h19 class SkPathEffectBase : public SkPathEffect {
86 static sk_sp<SkPathEffect> Deserialize(const void* data, size_t size,
88 return sk_sp<SkPathEffect>(static_cast<SkPathEffect*>(
125 using INHERITED = SkPathEffect;
130 static inline SkPathEffectBase* as_PEB(SkPathEffect* effect) { in as_PEB()
134 static inline const SkPathEffectBase* as_PEB(const SkPathEffect* effect) { in as_PEB()
138 static inline const SkPathEffectBase* as_PEB(const sk_sp<SkPathEffect>& effect) { in as_PEB()
142 static inline sk_sp<SkPathEffectBase> as_PEB_sp(sk_sp<SkPathEffect> effect) { in as_PEB_sp()
DSkScalerContext.h29 class SkPathEffect; variable
217 SkScalerContextEffects(SkPathEffect* pe, SkMaskFilter* mf) in SkScalerContextEffects()
223 SkPathEffect* fPathEffect;
429 sk_sp<SkPathEffect> fPathEffect;
/external/skia/tests/
DAsADashTest.cpp19 sk_sp<SkPathEffect> pe(SkCornerPathEffect::Make(1.0)); in DEF_TEST()
20 SkPathEffect::DashInfo info; in DEF_TEST()
22 SkPathEffect::DashType dashType = pe->asADash(&info); in DEF_TEST()
23 REPORTER_ASSERT(reporter, SkPathEffect::kNone_DashType == dashType); in DEF_TEST()
29 sk_sp<SkPathEffect> pe(SkDashPathEffect::Make(inIntervals, 4, phase)); in DEF_TEST()
31 SkPathEffect::DashType dashType = pe->asADash(nullptr); in DEF_TEST()
32 REPORTER_ASSERT(reporter, SkPathEffect::kDash_DashType == dashType); in DEF_TEST()
40 sk_sp<SkPathEffect> pe(SkDashPathEffect::Make(inIntervals, 4, phase)); in DEF_TEST()
42 SkPathEffect::DashInfo info; in DEF_TEST()
44 SkPathEffect::DashType dashType = pe->asADash(&info); in DEF_TEST()
[all …]
DDashPathEffectTest.cpp35 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, count, phase)); in DEF_TEST()
45 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, count, 0.0f)); in DEF_TEST()
107 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, 2, 0)); in DEF_TEST()
/external/skia/include/core/
DSkPathEffect.h28 class SK_API SkPathEffect : public SkFlattenable {
37 static sk_sp<SkPathEffect> MakeSum(sk_sp<SkPathEffect> first, sk_sp<SkPathEffect> second);
45 static sk_sp<SkPathEffect> MakeCompose(sk_sp<SkPathEffect> outer, sk_sp<SkPathEffect> inner);
96 static sk_sp<SkPathEffect> Deserialize(const void* data, size_t size,
100 SkPathEffect() = default;
DSkPaint.h29 class SkPathEffect; variable
506 SkPathEffect* getPathEffect() const { return fPathEffect.get(); } in getPathEffect()
515 sk_sp<SkPathEffect> refPathEffect() const;
527 void setPathEffect(sk_sp<SkPathEffect> pathEffect);
661 sk_sp<SkPathEffect> fPathEffect;
/external/skia/include/effects/
DSkOpPathEffect.h18 class SkPathEffect; variable
28 static sk_sp<SkPathEffect> Make(sk_sp<SkPathEffect> one, sk_sp<SkPathEffect> two, SkPathOp op);
33 static sk_sp<SkPathEffect> MakeTranslate(SkScalar dx, SkScalar dy);
34 static sk_sp<SkPathEffect> Make(const SkMatrix&);
39 static sk_sp<SkPathEffect> Make(SkScalar width, SkPaint::Join, SkPaint::Cap,
DSk2DPathEffect.h17 class SkPathEffect; variable
21 static sk_sp<SkPathEffect> Make(SkScalar width, const SkMatrix& matrix);
28 static sk_sp<SkPathEffect> Make(const SkMatrix& matrix, const SkPath& path);
DSkCornerPathEffect.h15 class SkPathEffect; variable
27 static sk_sp<SkPathEffect> Make(SkScalar radius);
DSkDashPathEffect.h15 class SkPathEffect; variable
40 static sk_sp<SkPathEffect> Make(const SkScalar intervals[], int count, SkScalar phase);
DSkTrimPathEffect.h15 class SkPathEffect; variable
42 static sk_sp<SkPathEffect> Make(SkScalar startT, SkScalar stopT, Mode = Mode::kNormal);
DSk1DPathEffect.h16 class SkPathEffect; variable
35 static sk_sp<SkPathEffect> Make(const SkPath& path, SkScalar advance, SkScalar phase, Style);
/external/skia/src/effects/
DSkOpPathEffect.cpp30 sk_sp<SkPathEffect> SkMergePathEffect::Make(sk_sp<SkPathEffect> one, sk_sp<SkPathEffect> two, in Make()
32 return sk_sp<SkPathEffect>(new SkOpPE(std::move(one), std::move(two), op)); in Make()
35 SkOpPE::SkOpPE(sk_sp<SkPathEffect> one, sk_sp<SkPathEffect> two, SkPathOp op) in SkOpPE()
111 sk_sp<SkPathEffect> SkMatrixPathEffect::MakeTranslate(SkScalar dx, SkScalar dy) { in MakeTranslate()
115 return sk_sp<SkPathEffect>(new SkMatrixPE(SkMatrix::Translate(dx, dy))); in MakeTranslate()
118 sk_sp<SkPathEffect> SkMatrixPathEffect::Make(const SkMatrix& matrix) { in Make()
122 return sk_sp<SkPathEffect>(new SkMatrixPE(matrix)); in Make()
147 sk_sp<SkPathEffect> SkStrokePathEffect::Make(SkScalar width, SkPaint::Join join, SkPaint::Cap cap, in Make()
152 return sk_sp<SkPathEffect>(new SkStrokePE(width, join, cap, miter)); in Make()
196 sk_sp<SkPathEffect> SkStrokeAndFillPathEffect::Make() { in Make()
[all …]
DSkOpPE.h16 SkOpPE(sk_sp<SkPathEffect> one, sk_sp<SkPathEffect> two, SkPathOp op);
29 sk_sp<SkPathEffect> fOne;
30 sk_sp<SkPathEffect> fTwo;
DSk2DPathEffect.cpp206 sk_sp<SkPathEffect> SkLine2DPathEffect::Make(SkScalar width, const SkMatrix& matrix) { in Make()
210 return sk_sp<SkPathEffect>(new SkLine2DPathEffectImpl(width, matrix)); in Make()
213 sk_sp<SkPathEffect> SkPath2DPathEffect::Make(const SkMatrix& matrix, const SkPath& path) { in Make()
214 return sk_sp<SkPathEffect>(new SkPath2DPathEffectImpl(matrix, path)); in Make()
DSkTrimPathEffect.cpp132 sk_sp<SkPathEffect> SkTrimPathEffect::Make(SkScalar startT, SkScalar stopT, Mode mode) { in Make()
148 return sk_sp<SkPathEffect>(new SkTrimPE(startT, stopT, mode)); in Make()
/external/skia/src/gpu/ganesh/
DGrStyle.h81 GrStyle(const SkStrokeRec& strokeRec, sk_sp<SkPathEffect> pe) : fStrokeRec(strokeRec) { in GrStyle()
119 SkPathEffect* pathEffect() const { return fPathEffect.get(); } in pathEffect()
120 sk_sp<SkPathEffect> refPathEffect() const { return fPathEffect; } in refPathEffect()
126 bool isDashed() const { return SkPathEffect::kDash_DashType == fDashInfo.fType; } in isDashed()
188 void initPathEffect(sk_sp<SkPathEffect> pe);
202 fType = SkPathEffect::kNone_DashType; in reset()
205 SkPathEffect::DashType fType;
213 sk_sp<SkPathEffect> fPathEffect;
DGrStyle.cpp106 void GrStyle::initPathEffect(sk_sp<SkPathEffect> pe) { in initPathEffect()
108 SkASSERT(SkPathEffect::kNone_DashType == fDashInfo.fType); in initPathEffect()
113 SkPathEffect::DashInfo info; in initPathEffect()
114 if (SkPathEffect::kDash_DashType == pe->asADash(&info)) { in initPathEffect()
117 fDashInfo.fType = SkPathEffect::kDash_DashType; in initPathEffect()
137 if (SkPathEffect::kDash_DashType == fDashInfo.fType) { in applyPathEffect()
DGrTestUtils.h76 static sk_sp<SkPathEffect> Make(const SkScalar* intervals, int count, SkScalar phase) { in Make()
77 return sk_sp<SkPathEffect>(new TestDashPathEffect(intervals, count, phase)); in Make()
/external/skia/gm/
Dpatheffects.cpp34 SkPathEffect* pe = paint->getPathEffect(); in compose_pe()
35 sk_sp<SkPathEffect> corner = SkCornerPathEffect::Make(25); in compose_pe()
36 sk_sp<SkPathEffect> compose; in compose_pe()
38 compose = SkPathEffect::MakeCompose(sk_ref_sp(pe), corner); in compose_pe()
102 static sk_sp<SkPathEffect> MakeTileEffect() { in MakeTileEffect()
200 sk_sp<SkPathEffect> effects[] = { in onDraw()
223 for (const sk_sp<SkPathEffect>& pe : effects) { in onDraw()
378 sk_sp<SkPathEffect> pathEffect(new StrokeLineInflated(strokeWidth, pxInflate)); in onDraw()
Dinversepaths.cpp42 Style(SkPaint::Style paintStyle, sk_sp<SkPathEffect> pe = sk_sp<SkPathEffect>()) in Style()
46 sk_sp<SkPathEffect> fPathEffect;
49 sk_sp<SkPathEffect> make_dash() { in make_dash()
/external/skia/tools/viewer/
DPathEffectsSlide.cpp29 static sk_sp<SkPathEffect> make_pe(int flags, SkScalar phase) { in make_pe()
48 return SkPathEffect::MakeCompose(outer, inner); in make_pe()
51 static sk_sp<SkPathEffect> make_warp_pe(SkScalar phase) { in make_warp_pe()
64 return SkPathEffect::MakeCompose(outer, inner); in make_warp_pe()
DSlidesSlide.cpp30 SkPathEffect* pe = paint->getPathEffect(); in compose_pe()
31 sk_sp<SkPathEffect> corner = SkCornerPathEffect::Make(25); in compose_pe()
32 sk_sp<SkPathEffect> compose; in compose_pe()
34 compose = SkPathEffect::MakeCompose(sk_ref_sp(pe), corner); in compose_pe()
98 static sk_sp<SkPathEffect> MakeTileEffect() { in MakeTileEffect()
/external/skia/bench/
DDashBench.cpp177 sk_sp<SkPathEffect> fPE;
214 sk_sp<SkPathEffect> fPE;
252 sk_sp<SkPathEffect> fPathEffect;
299 sk_sp<SkPathEffect> fPathEffect;
378 sk_sp<SkPathEffect> fPathEffect;

123