Flutter Engine
The Flutter Engine
third_party
skia
experimental
filterfuzz
filterfuzz.cpp
Go to the documentation of this file.
1
// Copyright 2021 Google LLC.
2
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3
4
5
#include "
include/core/SkGraphics.h
"
6
#include "
tools/flags/CommandLineFlags.h
"
7
8
static
DEFINE_int_2
(option, o, 0,
"An option"
);
9
10
static
void
exitf
(
const
char
*
format
, ...)
SK_PRINTF_LIKE
(1, 2);
11
12
static
void
exitf
(const
char
*
format
, ...) {
13
va_list
args
;
14
va_start
(
args
,
format
);
15
vfprintf(stderr,
format
,
args
);
16
va_end
(
args
);
17
18
exit
(1);
19
}
20
21
int
main
(
int
argc,
char
**
argv
) {
22
CommandLineFlags::Parse
(argc,
argv
);
23
24
if
(FLAGS_option) {
25
exitf
(
"Invalid option\n"
);
26
}
27
28
SkGraphics::Init
();
29
30
return
0;
31
}
CommandLineFlags.h
SK_PRINTF_LIKE
#define SK_PRINTF_LIKE(A, B)
Definition:
SkAttributes.h:52
SkGraphics.h
CommandLineFlags::Parse
static void Parse(int argc, const char *const *argv)
Definition:
CommandLineFlags.cpp:215
SkGraphics::Init
static void Init()
Definition:
SkGraphics.cpp:22
main
int main(int argc, char **argv)
Definition:
filterfuzz.cpp:21
DEFINE_int_2
static DEFINE_int_2(option, o, 0, "An option")
exitf
static void exitf(const char *format,...) SK_PRINTF_LIKE(1
Definition:
filterfuzz.cpp:12
args
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
Definition:
fl_event_channel.h:89
format
uint32_t uint32_t * format
Definition:
fl_texture_registrar_test.cc:41
argv
char ** argv
Definition:
library.h:9
dart::bin::va_start
va_start(args, format)
dart::bin::exit
exit(kErrorExitCode)
dart::bin::va_end
va_end(args)
Generated on Sun Jun 23 2024 21:55:57 for Flutter Engine by
1.9.4