Lines Matching refs:paint
321 void Device::drawPaint(const SkPaint& paint) {
326 if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint,
337 const SkPaint& paint) {
340 SkScalar width = paint.getStrokeWidth();
345 GrAA aa = fSurfaceDrawContext->chooseAA(paint);
347 if (paint.getPathEffect() && 2 == count && SkCanvas::kLines_PointMode == mode) {
348 GrStyle style(paint, SkPaint::kStroke_Style);
350 if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint,
370 paint.getPathEffect() ||
371 paint.getMaskFilter() ||
378 draw.drawPoints(mode, count, pts, paint, this);
396 if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint,
411 void Device::drawRect(const SkRect& rect, const SkPaint& paint) {
415 GrStyle style(paint);
418 if (paint.getMaskFilter() || paint.getPathEffect()) {
422 this->clip(), paint, this->asMatrixProvider(), shape);
427 if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint,
433 fSurfaceDrawContext->chooseAA(paint), this->localToDevice(), rect,
468 void Device::drawRRect(const SkRRect& rrect, const SkPaint& paint) {
472 SkMaskFilterBase* mf = as_MFB(paint.getMaskFilter());
479 GrStyle style(paint);
486 this->clip(), paint, this->asMatrixProvider(), shape);
493 if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint,
499 fSurfaceDrawContext->chooseAA(paint), this->localToDevice(),
503 void Device::drawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint) {
511 return this->drawRRect(outer, paint);
514 SkStrokeRec stroke(paint);
516 if (stroke.isFillStyle() && !paint.getMaskFilter() && !paint.getPathEffect()) {
520 fSurfaceDrawContext->chooseAA(paint),
523 if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint,
530 fSurfaceDrawContext->chooseAA(paint),
544 GrStyledShape shape(path, paint);
547 paint, this->asMatrixProvider(), shape);
552 void Device::drawRegion(const SkRegion& region, const SkPaint& paint) {
555 if (paint.getMaskFilter()) {
559 return this->drawPath(path, paint, true);
563 if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint,
569 fSurfaceDrawContext->chooseAA(paint), this->localToDevice(),
570 region, GrStyle(paint));
573 void Device::drawOval(const SkRect& oval, const SkPaint& paint) {
577 if (paint.getMaskFilter()) {
580 return this->drawRRect(rr, paint);
584 if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint,
590 fSurfaceDrawContext->chooseAA(paint), this->localToDevice(), oval,
591 GrStyle(paint));
598 const SkPaint& paint) {
601 if (paint.getMaskFilter()) {
602 this->INHERITED::drawArc(oval, startAngle, sweepAngle, useCenter, paint);
606 if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint,
612 fSurfaceDrawContext->chooseAA(paint), this->localToDevice(), oval,
613 startAngle, sweepAngle, useCenter, GrStyle(paint));
618 void Device::drawPath(const SkPath& origSrcPath, const SkPaint& paint, bool pathIsMutable) {
621 this->drawPath(SkPath(origSrcPath).setIsVolatile(true), paint, true);
627 if (!paint.getMaskFilter()) {
629 if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint,
634 fSurfaceDrawContext->chooseAA(paint), this->localToDevice(),
635 origSrcPath, GrStyle(paint));
640 GrStyledShape shape(origSrcPath, paint);
643 paint, this->asMatrixProvider(), shape);
741 const SkPaint& paint) {
745 this->INHERITED::drawDevice(device, sampling, paint);
752 const SkPaint& paint,
755 GrAA aa = fSurfaceDrawContext->chooseAA(paint);
757 this->drawImageQuad(image, src, &dst, nullptr, aa, aaFlags, nullptr, sampling, paint,
770 SkTCopyOnFirstWrite<SkPaint> paint(&origPaint);
772 if (!info.isAlphaOnly() && (paint->getColor() & 0x00FFFFFF) != 0x00FFFFFF) {
773 paint.writable()->setColor(SkColorSetARGB(origPaint.getAlpha(), 0xFF, 0xFF, 0xFF));
777 fSurfaceDrawContext->colorInfo(), *paint,
784 // the paint color.
798 const SkPaint& paint) {
808 paint);
812 void Device::drawVertices(const SkVertices* vertices, SkBlendMode mode, const SkPaint& paint) {
820 if (!init_vertices_paint(fContext.get(), fSurfaceDrawContext->colorInfo(), paint,
856 const SkPaint& paint) {
863 paint, this->asMatrixProvider(), mode, &grPaint)) {
868 paint, this->asMatrixProvider(), &grPaint)) {
879 void Device::onDrawGlyphRunList(const SkGlyphRunList& glyphRunList, const SkPaint& paint) {
885 this->clip(), this->asMatrixProvider(), glyphRunList, paint);