Lines Matching refs:paint
19 Draw::Draw(sk_sp<GeometryNode> geometry, sk_sp<PaintNode> paint)
21 , fPaint(std::move(paint)) {
32 auto paint = fPaint->makePaint();
34 ctx->modulatePaint(canvas->getTotalMatrix(), &paint);
37 const auto skipDraw = paint.nothingToDraw() ||
38 (paint.getStyle() == SkPaint::kStroke_Style && paint.getStrokeWidth() <= 0);
41 fGeometry->draw(canvas, paint);
46 const auto paint = fPaint->makePaint();
48 if (!paint.getAlpha()) {
52 if (paint.getStyle() == SkPaint::Style::kFill_Style && fGeometry->contains(p)) {
57 if (!paint.getFillPath(fGeometry->asPath(), &stroke_path)) {
70 const auto paint = fPaint->makePaint();
71 SkASSERT(paint.canComputeFastBounds());
73 return paint.computeFastBounds(bounds, &bounds);