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

Unified Diff: tools/debugger/SkDrawCommand.h

Issue 1690613002: added JSON support for various lesser-used features (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fixed minor mistakes leading to a build error Created 4 years, 10 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
« no previous file with comments | « no previous file | tools/debugger/SkDrawCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | tools/debugger/SkDrawCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698