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

Unified Diff: tools/debugger/SkDrawCommand.cpp

Issue 1715443002: fixed SkDrawCommand JSON generation (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/debugger/SkDrawCommand.cpp
diff --git a/tools/debugger/SkDrawCommand.cpp b/tools/debugger/SkDrawCommand.cpp
index 674a359cbbc4e0d21ae5ae7c3625f0c2fc0750a3..b46e4925a3b25cf968485d460f493d7f368802f2 100644
--- a/tools/debugger/SkDrawCommand.cpp
+++ b/tools/debugger/SkDrawCommand.cpp
@@ -227,8 +227,7 @@ Json::Value SkDrawCommand::toJSON(UrlDataManager& urlDataManager) const {
Json::Value SkDrawCommand::drawToAndCollectJSON(SkCanvas* canvas,
UrlDataManager& urlDataManager) const {
- Json::Value result;
- result[SKDEBUGCANVAS_ATTRIBUTE_COMMAND] = this->GetCommandString(fOpType);
+ Json::Value result = this->toJSON(urlDataManager);
SkASSERT(canvas);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698