Lines Matching defs:paint

1075 static bool rect_must_be_pathed(const SkPaint& paint, const SkMatrix& matrix) {
1076 const bool zeroWidth = (0 == paint.getStrokeWidth());
1077 const bool stroke = (SkPaint::kFill_Style != paint.getStyle());
1079 return paint.getPathEffect() ||
1080 paint.getMaskFilter() ||
1083 SkPaint::kMiter_Join != paint.getStrokeJoin() ||
1084 (SkPaint::kMiter_Join == paint.getStrokeJoin() &&
1085 paint.getStrokeMiter() < SK_ScalarSqrt2)
1144 const SkPaint& paint) {
1155 //If trying to paint with a stroke, ignore that and fill.
1157 SkTCopyOnFirstWrite<SkPaint> paint(origPaint);
1158 if (paint->getStyle() != SkPaint::kFill_Style) {
1159 paint.writable()->setStyle(SkPaint::kFill_Style);
1166 const SkPaint& paint) {
1167 this->internalDrawRect(r, true, paint);
1171 const SkPaint& paint) {
1174 this->drawPath(path, paint, true);
1181 const SkPaint& paint) {
1184 (paint.getAlpha() == 0 && paint.isSrcOver())) {
1189 if (rect_must_be_pathed(paint, this->localToDevice())) {
1193 this->drawPath(tmp, paint, true);
1214 HRV(this->shadePath(shadedPath.get(), paint, this->localToDevice(), &fill, &stroke));
1500 SkTCopyOnFirstWrite<SkPaint> paint(origPaint);
1504 (paint->getAlpha() == 0 && paint->isSrcOver())) {
1509 const bool paintHasPathEffect = paint->getPathEffect()
1510 || paint->getStyle() != SkPaint::kFill_Style;
1523 bool fill = paint->getFillPath(*skeletalPath, fillablePath);
1525 SkPaint* writablePaint = paint.writable();
1549 SkMaskFilter* filter = paint->getMaskFilter();
1553 if (paint->getStyle() != SkPaint::kFill_Style) {
1554 paint.writable()->setStyle(SkPaint::kFill_Style);
1562 *paint,
1583 SkASSERT(SkPaint::kFill_Style == paint->getStyle() ||
1584 (SkPaint::kStroke_Style == paint->getStyle() && 0 == paint->getStrokeWidth()));
1585 SkStrokeRec::InitStyle style = (SkPaint::kFill_Style == paint->getStyle())
1806 const SkPaint& paint) {
1848 paint,
1889 static bool text_must_be_pathed(const SkPaint& paint, const SkMatrix& matrix) {
1890 const SkPaint::Style style = paint.getStyle();
1894 || paint.getMaskFilter()
1898 void SkXPSDevice::onDrawGlyphRunList(const SkGlyphRunList& glyphRunList, const SkPaint& paint) {
1912 text_must_be_pathed(paint, this->localToDevice())) {
1915 //paint.getTextPath(text, byteLength, x, y, &path);
1916 //this->drawPath(path, paint, nullptr, true);
1961 paint));
2015 const SkPaint& paint,
2036 auto bitmapShader = SkMakeBitmapShaderForPaint(paint, bitmap,
2041 SkPaint paintWithShader(paint);