dm/gold: Let's consider source_type a key.

Ex.

   "results" : [
      {
         "key" : {
            "config" : "565",
            "mode" : "direct",
            "name" : "textblob",
            "source_type" : "GM"
         },
         "md5" : "024ecfc3be8c08ea0cc580c12411fe09"
      },

BUG=skia:3255

Review URL: https://codereview.chromium.org/811403003
This commit is contained in:
mtklein 2015-01-05 06:47:41 -08:00 committed by Commit bot
parent a64255942d
commit 3d8878caa7

View File

@ -50,11 +50,11 @@ void JsonWriter::DumpJson() {
SkAutoMutexAcquire lock(&gBitmapResultLock);
for (int i = 0; i < gBitmapResults.count(); i++) {
Json::Value result;
result["key"]["name"] = gBitmapResults[i].name.c_str();
result["key"]["config"] = gBitmapResults[i].config.c_str();
result["key"]["mode"] = gBitmapResults[i].mode.c_str();
result["options"]["source_type"] = gBitmapResults[i].sourceType.c_str();
result["md5"] = gBitmapResults[i].md5.c_str();
result["key"]["name"] = gBitmapResults[i].name.c_str();
result["key"]["config"] = gBitmapResults[i].config.c_str();
result["key"]["mode"] = gBitmapResults[i].mode.c_str();
result["key"]["source_type"] = gBitmapResults[i].sourceType.c_str();
result["md5"] = gBitmapResults[i].md5.c_str();
root["results"].append(result);
}