Index: src/utils/debugger/SkDebugCanvas.cpp |
diff --git a/src/utils/debugger/SkDebugCanvas.cpp b/src/utils/debugger/SkDebugCanvas.cpp |
index 337c9d0d651930f15da31873293e90f451939ae0..aed87cc22120e4e03f3e6af004ddebe8c9f638b5 100644 |
--- a/src/utils/debugger/SkDebugCanvas.cpp |
+++ b/src/utils/debugger/SkDebugCanvas.cpp |
@@ -396,20 +396,7 @@ void SkDebugCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { |
} |
void SkDebugCanvas::didConcat(const SkMatrix& matrix) { |
- switch (matrix.getType()) { |
- case SkMatrix::kTranslate_Mask: |
- this->addDrawCommand(new SkTranslateCommand(matrix.getTranslateX(), |
- matrix.getTranslateY())); |
- break; |
- case SkMatrix::kScale_Mask: |
- this->addDrawCommand(new SkScaleCommand(matrix.getScaleX(), |
- matrix.getScaleY())); |
- break; |
- default: |
- this->addDrawCommand(new SkConcatCommand(matrix)); |
- break; |
- } |
- |
+ this->addDrawCommand(new SkConcatCommand(matrix)); |
this->INHERITED::didConcat(matrix); |
} |
@@ -518,6 +505,12 @@ void SkDebugCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar |
this->addDrawCommand(new SkDrawTextBlobCommand(blob, x, y, paint)); |
} |
+void SkDebugCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
+ const SkPoint texCoords[4], SkXfermode* xmode, |
+ const SkPaint& paint) { |
+ this->addDrawCommand(new SkDrawPatchCommand(cubics, colors, texCoords, xmode, paint)); |
+} |
+ |
void SkDebugCanvas::onDrawVertices(VertexMode vmode, int vertexCount, const SkPoint vertices[], |
const SkPoint texs[], const SkColor colors[], |
SkXfermode*, const uint16_t indices[], int indexCount, |