Lines Matching refs:paint
43 bool is_opaque(const PaintParams& paint) {
80 // TODO: Inspect the paint and create info to determine if there's anything that has to be
145 void Device::drawPaint(const SkPaint& paint) {
146 // TODO: check paint params as well
149 fDC->clear(paint.getColor4f());
157 // v1 handles arbitrary transforms when the paint is solid color because it just fills the
163 this->drawShape(Shape(localCoveringBounds), paint, kFillStyle,
167 void Device::drawRect(const SkRect& r, const SkPaint& paint) {
168 this->drawShape(Shape(r), paint, SkStrokeRec(paint));
171 void Device::drawOval(const SkRect& oval, const SkPaint& paint) {
174 this->drawShape(Shape(SkRRect::MakeOval(oval)), paint, SkStrokeRec(paint));
177 void Device::drawRRect(const SkRRect& rr, const SkPaint& paint) {
178 this->drawShape(Shape(rr), paint, SkStrokeRec(paint));
181 void Device::drawPath(const SkPath& path, const SkPaint& paint, bool pathIsMutable) {
184 this->drawShape(Shape(path), paint, SkStrokeRec(paint));
188 const SkPoint* points, const SkPaint& paint) {
192 float radius = 0.5f * paint.getStrokeWidth();
197 if (paint.getStrokeCap() == SkPaint::kRound_Cap) {
198 this->drawShape(Shape(SkRRect::MakeOval(pointRect)), paint, kFillStyle);
200 this->drawShape(Shape(pointRect), paint, kFillStyle);
204 // Force the style to be a stroke, using the radius and cap from the paint
205 SkStrokeRec stroke(paint, SkPaint::kStroke_Style);
208 this->drawShape(Shape(points[i], points[(i + 1) % count]), paint, stroke);
214 const SkPaint& paint,
229 // Heavy weight paint options like path effects, mask filters, and stroke-and-fill style are
231 if (!(flags & DrawFlags::kIgnorePathEffect) && paint.getPathEffect()) {
238 if (paint.getPathEffect()->filterPath(&dst, shape.asPath(), &newStyle,
241 this->drawShape(Shape(dst), paint, newStyle, flags | DrawFlags::kIgnorePathEffect);
246 this->drawShape(shape, paint, style, flags | DrawFlags::kIgnorePathEffect);
251 if (!(flags & DrawFlags::kIgnoreMaskFilter) && paint.getMaskFilter()) {
255 this->drawShape(shape, paint, style, flags | DrawFlags::kIgnoreMaskFilter);
262 SkASSERT(!SkToBool(paint.getPathEffect()) || (flags & DrawFlags::kIgnorePathEffect));
263 SkASSERT(!SkToBool(paint.getMaskFilter()) || (flags & DrawFlags::kIgnoreMaskFilter));
281 auto blendMode = paint.asBlendMode();
282 PaintParams shading{paint.getColor4f(),
284 paint.refShader()};