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

Side by Side Diff: tools/chrome_fuzz.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, 1 month 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/PathOpsSkpClipTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "SkCanvas.h" 5 #include "SkCanvas.h"
6 #include "SkFlattenableSerialization.h" 6 #include "SkFlattenableSerialization.h"
7 #include "SkImageFilter.h" 7 #include "SkImageFilter.h"
8 #include "SkOSFile.h" 8 #include "SkOSFile.h"
9 #include "SkString.h" 9 #include "SkString.h"
10 10
11 static const int kBitmapSize = 24; 11 static const int kBitmapSize = 24;
12 12
13 static bool read_test_case(const char* filename, SkString* testdata) { 13 static bool read_test_case(const char* filename, SkString* testdata) {
14 SkFILE* file = sk_fopen(filename, kRead_SkFILE_Flag); 14 FILE* file = sk_fopen(filename, kRead_SkFILE_Flag);
15 if (!file) { 15 if (!file) {
16 SkDebugf("couldn't open file %s\n", filename); 16 SkDebugf("couldn't open file %s\n", filename);
17 return false; 17 return false;
18 } 18 }
19 size_t len = sk_fgetsize(file); 19 size_t len = sk_fgetsize(file);
20 if (!len) { 20 if (!len) {
21 SkDebugf("couldn't read file %s\n", filename); 21 SkDebugf("couldn't read file %s\n", filename);
22 return false; 22 return false;
23 } 23 }
24 testdata->resize(len); 24 testdata->resize(len);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 canvas.clear(0x00000000); 73 canvas.clear(0x00000000);
74 for (int i = 1; i < argc; i++) 74 for (int i = 1; i < argc; i++)
75 if (!read_and_run_test_case(argv[i], bitmap, &canvas)) 75 if (!read_and_run_test_case(argv[i], bitmap, &canvas))
76 ret = 2; 76 ret = 2;
77 // Cluster-Fuzz likes "#EOF" as the last line of output to help distinguish 77 // Cluster-Fuzz likes "#EOF" as the last line of output to help distinguish
78 // successful runs from crashes. 78 // successful runs from crashes.
79 SkDebugf("#EOF\n"); 79 SkDebugf("#EOF\n");
80 return ret; 80 return ret;
81 } 81 }
82 82
OLDNEW
« no previous file with comments | « tests/PathOpsSkpClipTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698