DM: move ext into key
BUG=skia: Review URL: https://codereview.chromium.org/925523003
This commit is contained in:
parent
1e4e814c03
commit
82079fb7aa
@ -54,7 +54,7 @@ void JsonWriter::DumpJson() {
|
||||
result["key"]["name"] = gBitmapResults[i].name.c_str();
|
||||
result["key"]["config"] = gBitmapResults[i].config.c_str();
|
||||
result["key"]["source_type"] = gBitmapResults[i].sourceType.c_str();
|
||||
result["ext"] = gBitmapResults[i].ext.c_str();
|
||||
result["options"]["ext"] = gBitmapResults[i].ext.c_str();
|
||||
result["md5"] = gBitmapResults[i].md5.c_str();
|
||||
|
||||
root["results"].append(result);
|
||||
@ -101,7 +101,7 @@ bool JsonWriter::ReadJson(const char* path, void(*callback)(BitmapResult)) {
|
||||
br.name = r["key"]["name"].asCString();
|
||||
br.config = r["key"]["config"].asCString();
|
||||
br.sourceType = r["key"]["source_type"].asCString();
|
||||
br.ext = r["ext"].asCString();
|
||||
br.ext = r["options"]["ext"].asCString();
|
||||
br.md5 = r["md5"].asCString();
|
||||
callback(br);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user