| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "CrashHandler.h" | 8 #include "CrashHandler.h" |
| 9 // #include "OverwriteLine.h" | 9 // #include "OverwriteLine.h" |
| 10 #include "Resources.h" | 10 #include "Resources.h" |
| (...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 SkString statName(data->fResult.fFilename); | 676 SkString statName(data->fResult.fFilename); |
| 677 SkASSERT(statName.endsWith(".skp")); | 677 SkASSERT(statName.endsWith(".skp")); |
| 678 statName.remove(statName.size() - 4, 4); | 678 statName.remove(statName.size() - 4, 4); |
| 679 statName.appendf(".%d.%d.skp", data->fResult.fPixelError, data->fResult.fTim
e); | 679 statName.appendf(".%d.%d.skp", data->fResult.fPixelError, data->fResult.fTim
e); |
| 680 SkString statusFile = get_out_path(data->fResult.fDirNo, outStatusDir); | 680 SkString statusFile = get_out_path(data->fResult.fDirNo, outStatusDir); |
| 681 if (!statusFile.size()) { | 681 if (!statusFile.size()) { |
| 682 SkDebugf("failed to create %s", statusFile.c_str()); | 682 SkDebugf("failed to create %s", statusFile.c_str()); |
| 683 return; | 683 return; |
| 684 } | 684 } |
| 685 statusFile.appendf("%s%s", PATH_SLASH, statName.c_str()); | 685 statusFile.appendf("%s%s", PATH_SLASH, statName.c_str()); |
| 686 SkFILE* file = sk_fopen(statusFile.c_str(), kWrite_SkFILE_Flag); | 686 FILE* file = sk_fopen(statusFile.c_str(), kWrite_SkFILE_Flag); |
| 687 if (!file) { | 687 if (!file) { |
| 688 SkDebugf("failed to create %s", statusFile.c_str()); | 688 SkDebugf("failed to create %s", statusFile.c_str()); |
| 689 return; | 689 return; |
| 690 } | 690 } |
| 691 sk_fclose(file); | 691 sk_fclose(file); |
| 692 if (verbose()) { | 692 if (verbose()) { |
| 693 if (data->fResult.fPixelError || data->fResult.fTime) { | 693 if (data->fResult.fPixelError || data->fResult.fTime) { |
| 694 SkDebugf("%s", data->fResult.progress().c_str()); | 694 SkDebugf("%s", data->fResult.progress().c_str()); |
| 695 } else { | 695 } else { |
| 696 SkDebugf("."); | 696 SkDebugf("."); |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1103 } | 1103 } |
| 1104 } | 1104 } |
| 1105 return 0; | 1105 return 0; |
| 1106 } | 1106 } |
| 1107 | 1107 |
| 1108 #if !defined(SK_BUILD_FOR_IOS) | 1108 #if !defined(SK_BUILD_FOR_IOS) |
| 1109 int main(int argc, char * const argv[]) { | 1109 int main(int argc, char * const argv[]) { |
| 1110 return tool_main(argc, (char**) argv); | 1110 return tool_main(argc, (char**) argv); |
| 1111 } | 1111 } |
| 1112 #endif | 1112 #endif |
| OLD | NEW |