Go to the source code of this file.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 70 of file chrome_fuzz.cpp.
70 {
71 int ret = 0;
75 canvas.clear(0x00000000);
76 for (
int i = 1;
i < argc;
i++)
78 ret = 2;
79
80
82 return ret;
83}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static bool read_and_run_test_case(const char *filename, const SkBitmap &bitmap, SkCanvas *canvas)
static const int kBitmapSize
◆ read_and_run_test_case()
static bool read_and_run_test_case |
( |
const char * |
filename, |
|
|
const SkBitmap & |
bitmap, |
|
|
SkCanvas * |
canvas |
|
) |
| |
|
static |
Definition at line 59 of file chrome_fuzz.cpp.
60 {
62 SkDebugf(
"Test case: %s\n", filename);
63
65 return false;
67 return true;
68}
static bool read_test_case(const char *filename, SkString *testdata)
static void run_test_case(const SkString &testdata, const SkBitmap &bitmap, SkCanvas *canvas)
◆ read_test_case()
static bool read_test_case |
( |
const char * |
filename, |
|
|
SkString * |
testdata |
|
) |
| |
|
static |
Definition at line 15 of file chrome_fuzz.cpp.
15 {
18 SkDebugf(
"couldn't open file %s\n", filename);
19 return false;
20 }
23 SkDebugf(
"couldn't read file %s\n", filename);
24 return false;
25 }
28 return true;
29}
FILE * sk_fopen(const char path[], SkFILE_Flags)
size_t sk_fgetsize(FILE *)
const char * data() const
◆ run_test_case()
Definition at line 31 of file chrome_fuzz.cpp.
32 {
33
34
37
38
39 if (flattenable != nullptr) {
40 SkDebugf(
"Valid stream detected.\n");
41
43 paint.setImageFilter(flattenable);
47
48
49
51
52 SkDebugf(
"Filter DAG rendered successfully.\n");
54 } else {
55 SkDebugf(
"Invalid stream detected.\n");
56 }
57}
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
const char * c_str() const
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
◆ kBitmapSize
const int kBitmapSize = 24 |
|
static |