Lines Matching defs:paint
146 SkPaint paint;
147 this->setupShapePaint(canvas, kShapeColors[colorIdx], mode, &paint);
148 SkASSERT(colorIdx == 0 || 255 == paint.getAlpha());
163 this->drawShape(canvas, static_cast<Shape>(shapeIdx), paint, mode);
213 void setupShapePaint(SkCanvas* canvas, SkColor color, SkBlendMode mode, SkPaint* paint) {
214 paint->setColor(color);
227 if (255 != paint->getAlpha()) {
230 paint->setAlpha(255 * paint->getAlpha() / maxSum);
232 // Just clear the dst, we need to preserve the paint's opacity.
242 void drawShape(SkCanvas* canvas, Shape shape, const SkPaint& paint, SkBlendMode mode) {
244 SkPaint shapePaint(paint);