Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: tools/debugger/SkDrawCommand.h

Issue 2130643004: drawTextRSXform (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update util canvases Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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[],

Powered by Google App Engine
This is Rietveld 408576698