Index: src/utils/SkDeferredCanvas.cpp |
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp |
index 2820bac48d8793954bd7c9247cefbe6e42c95f07..17a1f6c461e8e29cee95fefc0c67708f2fb0b4c9 100644 |
--- a/src/utils/SkDeferredCanvas.cpp |
+++ b/src/utils/SkDeferredCanvas.cpp |
@@ -917,7 +917,9 @@ void SkDeferredCanvas::drawVertices(VertexMode vmode, int vertexCount, |
} |
void SkDeferredCanvas::drawPatch(const SkPatch& patch, const SkPaint& paint) { |
- //TODO |
+ AutoImmediateDrawIfNeeded autoDraw(*this, &paint); |
+ this->drawingCanvas()->drawPatch(patch, paint); |
+ this->recordedDrawCommand(); |
} |
SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { |