Index: tools/debugger/SkDrawCommand.h |
diff --git a/tools/debugger/SkDrawCommand.h b/tools/debugger/SkDrawCommand.h |
index 8b8ada267fa8845f1fa243f60bfe205f8891715b..dc639ec3a3d0751d43a1c925b54b31a144dc78f0 100644 |
--- a/tools/debugger/SkDrawCommand.h |
+++ b/tools/debugger/SkDrawCommand.h |
@@ -14,6 +14,7 @@ |
#include "SkTLazy.h" |
#include "SkPath.h" |
#include "SkRRect.h" |
+#include "SkRSXform.h" |
#include "SkString.h" |
#include "SkTDArray.h" |
#include "SkJSONCPP.h" |
@@ -48,6 +49,7 @@ public: |
kDrawText_OpType, |
kDrawTextBlob_OpType, |
kDrawTextOnPath_OpType, |
+ kDrawTextRSXform_OpType, |
kDrawVertices_OpType, |
kEndDrawPicture_OpType, |
kRestore_OpType, |
@@ -526,6 +528,26 @@ private: |
typedef SkDrawCommand INHERITED; |
}; |
+class SkDrawTextRSXformCommand : public SkDrawCommand { |
+public: |
+ SkDrawTextRSXformCommand(const void* text, size_t byteLength, const SkRSXform[], |
+ const SkRect*, const SkPaint& paint); |
+ ~SkDrawTextRSXformCommand() override { delete[] fText; delete[] fXform; } |
+ void execute(SkCanvas* canvas) const override; |
+ Json::Value toJSON(UrlDataManager& urlDataManager) const override; |
+ static SkDrawTextRSXformCommand* fromJSON(Json::Value& command, UrlDataManager& urlDataManager); |
+ |
+private: |
+ char* fText; |
+ size_t fByteLength; |
+ SkRSXform* fXform; |
+ SkRect* fCull; |
+ SkRect fCullStorage; |
+ SkPaint fPaint; |
+ |
+ typedef SkDrawCommand INHERITED; |
+}; |
+ |
class SkDrawPosTextHCommand : public SkDrawCommand { |
public: |
SkDrawPosTextHCommand(const void* text, size_t byteLength, const SkScalar xpos[], |