Lines Matching defs:parent
241 void GrStyledShape::setInheritedKey(const GrStyledShape &parent, GrStyle::Apply apply,
252 int parentCnt = parent.fInheritedKey.count();
255 parentCnt = parent.unstyledKeySize();
257 // The parent's geometry has no key so we will have no key.
263 if (parent.knownToBeClosed()) {
266 if (parent.asLine(nullptr, nullptr)) {
269 int styleCnt = GrStyle::KeySize(parent.fStyle, apply, styleKeyFlags);
279 parent.writeUnstyledKey(fInheritedKey.get());
282 memcpy(fInheritedKey.get(), parent.fInheritedKey.get(),
286 GrStyle::WriteKey(fInheritedKey.get() + parentCnt, parent.fStyle, apply, scale,
331 GrStyledShape::GrStyledShape(const GrStyledShape& parent, GrStyle::Apply apply, SkScalar scale) {
336 if (!parent.style().applies() ||
337 (GrStyle::Apply::kPathEffectOnly == apply && !parent.style().pathEffect())) {
338 *this = parent;
342 SkPathEffect* pe = parent.fStyle.pathEffect();
344 const GrStyledShape* parentForKey = &parent;
352 if (parent.fShape.isPath()) {
353 srcForPathEffect = &parent.fShape.path();
356 parent.asPath(tmpPath.get());
360 SkStrokeRec strokeRec = parent.fStyle.strokeRec();
361 if (!parent.fStyle.applyPathEffectToPath(&fShape.path(), &strokeRec, *srcForPathEffect,
374 // parent shape that would be used to determine the the stroked path's key.
379 tmpParent->setInheritedKey(parent, GrStyle::Apply::kPathEffectOnly, scale);
385 // The parent shape may have simplified away the strokeRec, check for that here.
402 if (parent.fShape.isPath()) {
403 srcForParentStyle = &parent.fShape.path();
406 parent.asPath(tmpPath.get());
409 SkASSERT(parent.fStyle.applies());
410 SkASSERT(!parent.fStyle.pathEffect());
411 SkAssertResult(parent.fStyle.applyToPath(&fShape.path(), &fillOrHairline,
416 if (parent.fInheritedPathForListeners.isValid()) {
417 fInheritedPathForListeners.set(*parent.fInheritedPathForListeners);
418 } else if (parent.fShape.isPath() && !parent.fShape.path().isVolatile()) {
419 fInheritedPathForListeners.set(parent.fShape.path());