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); |