diff options
author | 2014-09-09 07:59:46 -0700 | |
---|---|---|
committer | 2014-09-09 07:59:46 -0700 | |
commit | ea65bfa8ded918b908287e3e3474aaf5cbd12fea (patch) | |
tree | 466469207e976828154517fe8201f8032d9e0433 /dm/DMPDFTask.cpp | |
parent | 197ceda92966359962c51923a01dd2b0018b080f (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.cpp | 3 |
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 { |