Lines Matching refs:paint
120 void SkBaseDevice::drawRegion(const SkRegion& region, const SkPaint& paint) {
123 bool complexPaint = paint.getStyle() != SkPaint::kFill_Style || paint.getMaskFilter() ||
124 paint.getPathEffect();
125 bool antiAlias = paint.isAntiAlias() && (!is_int(localToDevice.getTranslateX()) ||
131 return this->drawPath(path, paint, true);
136 this->drawRect(SkRect::Make(it.rect()), paint);
142 SkScalar sweepAngle, bool useCenter, const SkPaint& paint) {
144 bool isFillNoPathEffect = SkPaint::kFill_Style == paint.getStyle() && !paint.getPathEffect();
147 this->drawPath(path, paint);
151 const SkRRect& inner, const SkPaint& paint) {
158 this->drawPath(path, paint, true);
162 const SkPoint texCoords[4], SkBlendMode bmode, const SkPaint& paint) {
167 this->drawVertices(vertices.get(), bmode, paint);
172 const SkRect& dst, SkFilterMode filter, const SkPaint& paint) {
186 if (0 != c || !paint.isSrcOver()) {
187 SkPaint paintCopy(paint);
188 int alpha = SkAlphaMul(SkColorGetA(c), SkAlpha255To256(paint.getAlpha()));
193 this->drawImageRect(image, &srcR, dstR, SkSamplingOptions(filter), paint,
216 const SkPaint& paint) {
241 this->drawVertices(builder.detach().get(), mode, paint);
246 SkPaint paint;
247 paint.setColor4f(color);
248 paint.setBlendMode(mode);
249 paint.setAntiAlias(aa == SkCanvas::kAll_QuadAAFlags);
255 this->drawPath(clipPath, paint);
257 this->drawRect(r, paint);
263 const SkSamplingOptions& sampling, const SkPaint& paint,
265 SkASSERT(paint.getStyle() == SkPaint::kFill_Style);
266 SkASSERT(!paint.getPathEffect());
268 SkPaint entryPaint = paint;
276 entryPaint.setAlphaf(paint.getAlphaf() * images[i].fAlpha);
325 const SkPaint& paint) {
328 this->drawSpecial(deviceImage.get(), device->getRelativeTransform(*this), sampling, paint);
334 const SkPaint& paint) {
335 SkASSERT(!paint.getImageFilter() && !paint.getMaskFilter());
359 this->drawSpecial(result.get(), deviceMatrixWithOffset, sampling, paint);
438 void SkBaseDevice::drawGlyphRunList(const SkGlyphRunList& glyphRunList, const SkPaint& paint) {
444 this->onDrawGlyphRunList(glyphRunList, paint);
446 this->simplifyGlyphRunRSXFormAndRedraw(glyphRunList, paint);
451 const SkPaint& paint) {
454 this->drawGlyphRunList(SkGlyphRunList{run, run.sourceBounds(paint), {0, 0}}, paint);
480 SkPaint invertingPaint{paint};
481 invertingPaint.setShader(make_post_inverse_lm(paint.getShader(), glyphToLocal));
484 SkGlyphRunList{glyphRun, glyphRun.sourceBounds(paint), {0, 0}}, invertingPaint);