Lines Matching refs:Mode
53 SkTrimPE::SkTrimPE(SkScalar startT, SkScalar stopT, SkTrimPathEffect::Mode mode)
54 : fStartT(startT), fStopT(stopT), fMode(mode) {}
59 SkASSERT(fMode == SkTrimPathEffect::Mode::kNormal);
75 if (fMode == SkTrimPathEffect::Mode::kNormal) {
94 const auto mode = buffer.readUInt();
97 (mode & 1) ? SkTrimPathEffect::Mode::kInverted : SkTrimPathEffect::Mode::kNormal);
102 sk_sp<SkPathEffect> SkTrimPathEffect::Make(SkScalar startT, SkScalar stopT, Mode mode) {
107 if (startT <= 0 && stopT >= 1 && mode == Mode::kNormal) {
114 if (startT >= stopT && mode == Mode::kInverted) {
118 return sk_sp<SkPathEffect>(new SkTrimPE(startT, stopT, mode));