aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DMPDFTask.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-09-09 07:59:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-09 07:59:46 -0700
commitea65bfa8ded918b908287e3e3474aaf5cbd12fea (patch)
tree466469207e976828154517fe8201f8032d9e0433 /dm/DMPDFTask.cpp
parent197ceda92966359962c51923a01dd2b0018b080f (diff)
Update DM JSON format.
Ex. dm --match patch -w bad --key arch x86 gpu nvidia model z620 --properties git_hash abcd build_number 20 -> { "build_number" : "20", "git_hash" : "abcd", "key" : { "arch" : "x86", "gpu" : "nvidia", "model" : "z620" }, "results" : [ { "key" : { "config" : "565", "name" : "ninepatch-stretch" }, "md5" : "f78cfafcbabaf815f3dfcf61fb59acc7", "options" : { "source_type" : "GM" } }, { "key" : { "config" : "8888", "name" : "ninepatch-stretch" }, "md5" : "3e8a42f35a1e76f00caa191e6310d789", "options" : { "source_type" : "GM" } }, ... This breaks -r, but that's okay. Going to follow up this CL with one that removes that entirely. BUG=skia: R=stephana@google.com, jcgregorio@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/551873003
Diffstat (limited to 'dm/DMPDFTask.cpp')
-rw-r--r--dm/DMPDFTask.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/dm/DMPDFTask.cpp b/dm/DMPDFTask.cpp
index c047771587..c996aae53c 100644
--- a/dm/DMPDFTask.cpp
+++ b/dm/DMPDFTask.cpp
@@ -86,8 +86,9 @@ void PDFTask::draw() {
this->spawnChild(SkNEW_ARGS(PDFRasterizeTask,
(*this, pdfData->duplicate(), fRasterize)));
}
+ const char* sourceType = fGM.get() ? "GM" : "SKP";
this->spawnChild(SkNEW_ARGS(WriteTask,
- (*this, pdfData->duplicate(), ".pdf")));
+ (*this, sourceType, pdfData->duplicate(), ".pdf")));
}
bool PDFTask::shouldSkip() const {