Index: tools/skpdiff/SkDiffContext.cpp |
diff --git a/tools/skpdiff/SkDiffContext.cpp b/tools/skpdiff/SkDiffContext.cpp |
index cf2654ac054ca395933e84d677f7f146b9cd5deb..f551ff350809c7fab0cb590c1c150ec304f5221c 100644 |
--- a/tools/skpdiff/SkDiffContext.cpp |
+++ b/tools/skpdiff/SkDiffContext.cpp |
@@ -164,12 +164,15 @@ void SkDiffContext::outputRecords(SkWStream& stream, bool useJSONP) { |
while (NULL != currentRecord) { |
stream.writeText(" {\n"); |
+ SkString baselineAbsPath = get_absolute_path(currentRecord->fBaselinePath); |
+ SkString testAbsPath = get_absolute_path(currentRecord->fTestPath); |
+ |
stream.writeText(" \"baselinePath\": \""); |
- stream.writeText(currentRecord->fBaselinePath.c_str()); |
+ stream.writeText(baselineAbsPath.c_str()); |
stream.writeText("\",\n"); |
stream.writeText(" \"testPath\": \""); |
- stream.writeText(currentRecord->fTestPath.c_str()); |
+ stream.writeText(testAbsPath.c_str()); |
stream.writeText("\",\n"); |
stream.writeText(" \"diffs\": [\n"); |