| 233 | const sk_sp<SkTextBlob>& textBlob, |
| 234 | std::optional<Color> textColor) { |
| 235 | auto resolvedPaint = _textPaint; |
| 236 | if (_gradientWrapper.hasGradient()) { |
| 237 | applyGradientToTextPaint(resolvedPaint); |
| 238 | } else { |
| 239 | if (textColor) { |
| 240 | resolvedPaint.setColor(textColor.value()); |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | drawingContext.canvas()->drawTextBlob(textBlob, 0, 0, resolvedPaint.getSkValue()); |