Index: tools/debugger/SkDrawCommand.h |
diff --git a/tools/debugger/SkDrawCommand.h b/tools/debugger/SkDrawCommand.h |
index a7e6c73802bdee18e30d37f0efced17555376a0d..7fa9aadf3b3c654cace303f58ea72b51a425ef6f 100644 |
--- a/tools/debugger/SkDrawCommand.h |
+++ b/tools/debugger/SkDrawCommand.h |
@@ -24,6 +24,7 @@ class SK_API SkDrawCommand { |
public: |
enum OpType { |
kBeginDrawPicture_OpType, |
+ kBeginDrawShadowedPicture_OpType, |
kClipPath_OpType, |
kClipRegion_OpType, |
kClipRect_OpType, |
@@ -52,6 +53,7 @@ public: |
kDrawTextRSXform_OpType, |
kDrawVertices_OpType, |
kEndDrawPicture_OpType, |
+ kEndDrawShadowedPicture_OpType, |
kRestore_OpType, |
kSave_OpType, |
kSaveLayer_OpType, |
@@ -455,6 +457,34 @@ private: |
typedef SkDrawCommand INHERITED; |
}; |
+class SkBeginDrawShadowedPictureCommand : public SkDrawCommand { |
+public: |
+ SkBeginDrawShadowedPictureCommand(const SkPicture* picture, |
+ sk_sp<SkLights> lights); |
+ |
+ void execute(SkCanvas* canvas) const override; |
+ bool render(SkCanvas* canvas) const override; |
+ |
+private: |
+ SkAutoTUnref<const SkPicture> fPicture; |
+ SkTLazy<SkMatrix> fMatrix; |
+ SkTLazy<SkPaint> fPaint; |
+ |
+ typedef SkDrawCommand INHERITED; |
+}; |
+ |
+class SkEndDrawShadowedPictureCommand : public SkDrawCommand { |
+public: |
+ SkEndDrawShadowedPictureCommand(bool restore); |
+ |
+ void execute(SkCanvas* canvas) const override; |
+ |
+private: |
+ bool fRestore; |
+ |
+ typedef SkDrawCommand INHERITED; |
+}; |
+ |
class SkDrawPointsCommand : public SkDrawCommand { |
public: |
SkDrawPointsCommand(SkCanvas::PointMode mode, size_t count, const SkPoint pts[], |