diff options
Diffstat (limited to 'tools/debugger/SkDrawCommand.h')
-rw-r--r-- | tools/debugger/SkDrawCommand.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/debugger/SkDrawCommand.h b/tools/debugger/SkDrawCommand.h index fa12dd45d3..a7a3015335 100644 --- a/tools/debugger/SkDrawCommand.h +++ b/tools/debugger/SkDrawCommand.h @@ -61,6 +61,7 @@ public: kDrawTextRSXform_OpType, kDrawVertices_OpType, kDrawAtlas_OpType, + kDrawDrawable_OpType, kEndDrawPicture_OpType, kRestore_OpType, kSave_OpType, @@ -724,5 +725,16 @@ private: typedef SkDrawCommand INHERITED; }; -#endif +class SkDrawDrawableCommand : public SkDrawCommand { +public: + SkDrawDrawableCommand(SkDrawable*, const SkMatrix*); + void execute(SkCanvas* canvas) const override; + +private: + sk_sp<SkDrawable> fDrawable; + SkTLazy<SkMatrix> fMatrix; + + typedef SkDrawCommand INHERITED; +}; +#endif |