aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/debugger/SkDrawCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/debugger/SkDrawCommand.h')
-rw-r--r--tools/debugger/SkDrawCommand.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/debugger/SkDrawCommand.h b/tools/debugger/SkDrawCommand.h
index a52eb43762..5a14c4fbff 100644
--- a/tools/debugger/SkDrawCommand.h
+++ b/tools/debugger/SkDrawCommand.h
@@ -60,6 +60,7 @@ public:
kDrawTextOnPath_OpType,
kDrawTextRSXform_OpType,
kDrawVertices_OpType,
+ kDrawAtlas_OpType,
kEndDrawPicture_OpType,
kRestore_OpType,
kSave_OpType,
@@ -742,6 +743,25 @@ private:
typedef SkDrawCommand INHERITED;
};
+class SkDrawAtlasCommand : public SkDrawCommand {
+public:
+ SkDrawAtlasCommand(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int,
+ SkBlendMode, const SkRect*, const SkPaint*);
+
+ void execute(SkCanvas* canvas) const override;
+
+private:
+ sk_sp<const SkImage> fImage;
+ SkTDArray<SkRSXform> fXform;
+ SkTDArray<SkRect> fTex;
+ SkTDArray<SkColor> fColors;
+ SkBlendMode fBlendMode;
+ SkTLazy<SkRect> fCull;
+ SkTLazy<SkPaint> fPaint;
+
+ typedef SkDrawCommand INHERITED;
+};
+
class SkSaveCommand : public SkDrawCommand {
public:
SkSaveCommand();