Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6e110c8

Browse files
Nathaniel NifongSkia Commit-Bot
authored andcommitted
dump value from DrawAnnotation commands
Change-Id: Ic889a8877522d4a51ada2aed7f766bc4569924d8 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/344700 Reviewed-by: Kevin Lubick <[email protected]> Reviewed-by: Nathaniel Nifong <[email protected]> Commit-Queue: Nathaniel Nifong <[email protected]>
1 parent 8c277bd commit 6e110c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/debugger/DrawCommand.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,9 @@ void DrawAnnotationCommand::toJSON(SkJSONWriter& writer, UrlDataManager& urlData
11831183
MakeJsonRect(writer, fRect);
11841184
writer.appendString("key", fKey.c_str());
11851185
if (fValue) {
1186-
// TODO: dump out the "value"
1186+
writer.appendString("value", std::string(
1187+
static_cast<const char*>(fValue->data()), fValue->size()
1188+
).c_str());
11871189
}
11881190

11891191
SkString desc;

0 commit comments

Comments
 (0)