Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: tests/PathOpsSkpClipTest.cpp

Issue 1467533003: Eliminate SkFILE - it always is the same as FILE. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-11-20 (Friday) 14:01:26 EST Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/DataRefTest.cpp ('k') | tools/chrome_fuzz.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « tests/DataRefTest.cpp ('k') | tools/chrome_fuzz.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698