Index: tools/debugger/SkDrawCommand.cpp |
diff --git a/tools/debugger/SkDrawCommand.cpp b/tools/debugger/SkDrawCommand.cpp |
index 5ca725088ab9e6a2efb43fd47abac81cb9ce5954..33e49ce75edec556435fc5f4437c64d4a826255c 100644 |
--- a/tools/debugger/SkDrawCommand.cpp |
+++ b/tools/debugger/SkDrawCommand.cpp |
@@ -31,6 +31,7 @@ |
#endif |
#define SKDEBUGCANVAS_ATTRIBUTE_COMMAND "command" |
+#define SKDEBUGCANVAS_ATTRIBUTE_VISIBLE "visible" |
#define SKDEBUGCANVAS_ATTRIBUTE_AUDITTRAIL "auditTrail" |
#define SKDEBUGCANVAS_ATTRIBUTE_MATRIX "matrix" |
#define SKDEBUGCANVAS_ATTRIBUTE_COORDS "coords" |
@@ -222,6 +223,7 @@ SkString SkDrawCommand::toString() const { |
Json::Value SkDrawCommand::toJSON(UrlDataManager& urlDataManager) const { |
Json::Value result; |
result[SKDEBUGCANVAS_ATTRIBUTE_COMMAND] = this->GetCommandString(fOpType); |
+ result[SKDEBUGCANVAS_ATTRIBUTE_VISIBLE] = Json::Value(this->isVisible()); |
return result; |
} |