diff options
author | 2016-02-18 10:50:50 -0800 | |
---|---|---|
committer | 2016-02-18 10:50:50 -0800 | |
commit | 3afae70a48cd9f9c0f57dc7db3f31aea0bb158f1 (patch) | |
tree | 421430e080641e33104cd42598a32e5986c76f3d /tools/debugger | |
parent | 3ca1e1ae4fe710265056eadb086fc6ccc2caa57e (diff) |
fixed SkDrawCommand JSON generation
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1715443002
Review URL: https://codereview.chromium.org/1715443002
Diffstat (limited to 'tools/debugger')
-rw-r--r-- | tools/debugger/SkDrawCommand.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/debugger/SkDrawCommand.cpp b/tools/debugger/SkDrawCommand.cpp index 674a359cbb..b46e4925a3 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); |