Index: tools/debugger/SkDrawCommand.h |
diff --git a/tools/debugger/SkDrawCommand.h b/tools/debugger/SkDrawCommand.h |
index a93461ab26a4d5a80adaa60e7884ed52551f3f20..c0ab3a0a4e915d17c0eef6fd3b46d4a594649528 100644 |
--- a/tools/debugger/SkDrawCommand.h |
+++ b/tools/debugger/SkDrawCommand.h |
@@ -528,11 +528,15 @@ public: |
const SkPoint texCoords[4], SkXfermode* xmode, |
const SkPaint& paint); |
void execute(SkCanvas* canvas) const override; |
+ Json::Value toJSON() const override; |
+ static SkDrawPatchCommand* fromJSON(Json::Value& command); |
private: |
SkPoint fCubics[12]; |
- SkColor fColors[4]; |
- SkPoint fTexCoords[4]; |
+ SkColor* fColorsPtr; |
+ SkColor fColors[4]; |
+ SkPoint* fTexCoordsPtr; |
+ SkPoint fTexCoords[4]; |
SkAutoTUnref<SkXfermode> fXfermode; |
SkPaint fPaint; |