Index: src/utils/SkDeferredCanvas.cpp |
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp |
index 128f8a564de360f1aac2a6e3046ddb4567369717..de3958adbc42428d4b38e786f77ebe2a584fd3af 100644 |
--- a/src/utils/SkDeferredCanvas.cpp |
+++ b/src/utils/SkDeferredCanvas.cpp |
@@ -224,7 +224,9 @@ protected: |
SkXfermode* xmode, const uint16_t indices[], |
int indexCount, const SkPaint& paint) SK_OVERRIDE |
{SkASSERT(0);} |
- virtual void drawPatch(const SkDraw&, const SkPatch& patch, const SkPaint& paint) SK_OVERRIDE |
+ virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColor colors[4], |
+ const SkPoint texCoords[4], SkXfermode* xmode, |
+ const SkPaint& paint) SK_OVERRIDE |
{SkASSERT(0);} |
virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
const SkPaint&) SK_OVERRIDE |
@@ -917,9 +919,11 @@ void SkDeferredCanvas::drawVertices(VertexMode vmode, int vertexCount, |
this->recordedDrawCommand(); |
} |
-void SkDeferredCanvas::drawPatch(const SkPatch& patch, const SkPaint& paint) { |
+void SkDeferredCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
+ const SkPoint texCoords[4], SkXfermode* xmode, |
+ const SkPaint& paint) { |
AutoImmediateDrawIfNeeded autoDraw(*this, &paint); |
- this->drawingCanvas()->drawPatch(patch, paint); |
+ this->drawingCanvas()->drawPatch(cubics, colors, texCoords, xmode, paint); |
this->recordedDrawCommand(); |
} |