add float equivalent in dumpHex output as comment
R=reed@google.com,bsalomon@google.com
Review URL: https://codereview.chromium.org/676803002
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index 06f8b7e..f756ce3 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -2050,7 +2050,21 @@
str->append(", ");
append_scalar(str, conicWeight, dumpAsHex);
}
- str->append(");\n");
+ str->append(");");
+ if (dumpAsHex) {
+ str->append(" // ");
+ for (int i = 0; i < count; ++i) {
+ append_scalar(str, values[i], false);
+ if (i < count - 1) {
+ str->append(", ");
+ }
+ }
+ if (conicWeight >= 0) {
+ str->append(", ");
+ append_scalar(str, conicWeight, false);
+ }
+ }
+ str->append("\n");
}
void SkPath::dump(SkWStream* wStream, bool forceClose, bool dumpAsHex) const {