Lines Matching refs:attrs
136 void commitToPaint<SkSVGAttribute::kFill>(const SkSVGPresentationAttributes& attrs,
139 applySvgPaint(ctx, *attrs.fFill.get(), &pctx->fFillPaint);
143 void commitToPaint<SkSVGAttribute::kStroke>(const SkSVGPresentationAttributes& attrs,
146 applySvgPaint(ctx, *attrs.fStroke.get(), &pctx->fStrokePaint);
150 void commitToPaint<SkSVGAttribute::kFillOpacity>(const SkSVGPresentationAttributes& attrs,
153 pctx->fFillPaint.setAlpha(opacity_to_alpha(*attrs.fFillOpacity.get()));
157 void commitToPaint<SkSVGAttribute::kStrokeLineCap>(const SkSVGPresentationAttributes& attrs,
160 const auto& cap = *attrs.fStrokeLineCap.get();
167 void commitToPaint<SkSVGAttribute::kStrokeLineJoin>(const SkSVGPresentationAttributes& attrs,
170 const auto& join = *attrs.fStrokeLineJoin.get();
177 void commitToPaint<SkSVGAttribute::kStrokeOpacity>(const SkSVGPresentationAttributes& attrs,
180 pctx->fStrokePaint.setAlpha(opacity_to_alpha(*attrs.fStrokeOpacity.get()));
184 void commitToPaint<SkSVGAttribute::kStrokeWidth>(const SkSVGPresentationAttributes& attrs,
187 auto strokeWidth = ctx.lengthContext().resolve(*attrs.fStrokeWidth.get(),
207 // TODO: drive AA off presentation attrs also (shape-rendering?)
250 void SkSVGRenderContext::applyPresentationAttributes(const SkSVGPresentationAttributes& attrs,
257 const auto* value = attrs.f ## ATTR.getMaybeNull(); \
262 commitToPaint<SkSVGAttribute::k ## ATTR>(attrs, *this, \
280 if (auto* opacity = attrs.fOpacity.getMaybeNull()) {
284 if (auto* clip = attrs.fClipPath.getMaybeNull()) {