Index: src/utils/debugger/SkDrawCommand.h |
diff --git a/src/utils/debugger/SkDrawCommand.h b/src/utils/debugger/SkDrawCommand.h |
index 9da05eeedb94542197236fea32d82bc0a6f8b0e9..c7e5f008a423b4e4c1911bdc72dbd461292c7060 100644 |
--- a/src/utils/debugger/SkDrawCommand.h |
+++ b/src/utils/debugger/SkDrawCommand.h |
@@ -41,6 +41,7 @@ |
kDrawPosTextH_OpType, |
kDrawRect_OpType, |
kDrawRRect_OpType, |
+ kDrawSprite_OpType, |
kDrawText_OpType, |
kDrawTextBlob_OpType, |
kDrawTextOnPath_OpType, |
@@ -517,6 +518,21 @@ |
typedef SkDrawCommand INHERITED; |
}; |
+class SkDrawSpriteCommand : public SkDrawCommand { |
+public: |
+ SkDrawSpriteCommand(const SkBitmap& bitmap, int left, int top, const SkPaint* paint); |
+ void execute(SkCanvas* canvas) const override; |
+ bool render(SkCanvas* canvas) const override; |
+private: |
+ SkBitmap fBitmap; |
+ int fLeft; |
+ int fTop; |
+ SkPaint fPaint; |
+ SkPaint* fPaintPtr; |
+ |
+ typedef SkDrawCommand INHERITED; |
+}; |
+ |
class SkDrawVerticesCommand : public SkDrawCommand { |
public: |
SkDrawVerticesCommand(SkCanvas::VertexMode vmode, int vertexCount, |