Index: src/utils/SkDeferredCanvas.cpp |
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp |
index de3958adbc42428d4b38e786f77ebe2a584fd3af..cb69b4e282abee98cc95990b767fd24eae83d53d 100644 |
--- a/src/utils/SkDeferredCanvas.cpp |
+++ b/src/utils/SkDeferredCanvas.cpp |
@@ -901,6 +901,13 @@ void SkDeferredCanvas::onDrawTextOnPath(const void* text, size_t byteLength, con |
this->recordedDrawCommand(); |
} |
+void SkDeferredCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
+ const SkPaint& paint) { |
+ AutoImmediateDrawIfNeeded autoDraw(*this, &paint); |
+ this->drawingCanvas()->drawTextBlob(blob, x, y, paint); |
+ this->recordedDrawCommand(); |
+} |
+ |
void SkDeferredCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matrix, |
const SkPaint* paint) { |
this->drawingCanvas()->drawPicture(picture, matrix, paint); |