Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
Config Struct Reference

#include <nanobench.h>

Public Member Functions

 Config (int argc, char **argv)
 

Public Attributes

SkString name
 
Benchmark::Backend backend
 
SkColorType color
 
SkAlphaType alpha
 
sk_sp< SkColorSpacecolorSpace
 
int samples
 
sk_gpu_test::GrContextFactory::ContextType ctxType
 
sk_gpu_test::GrContextFactory::ContextOverrides ctxOverrides
 
uint32_t surfaceFlags
 
DoubleOption page_width = DoubleOption("-w", "Page width", 600.0f)
 
DoubleOption page_height = DoubleOption("-h", "Page height", 800.0f)
 
StringOption title = StringOption("-t", "PDF title", "---")
 
StringOption author = StringOption("-a", "PDF author", "---")
 
StringOption subject = StringOption("-k", "PDF subject", "---")
 
StringOption keywords = StringOption("-c", "PDF keywords", "---")
 
StringOption creator = StringOption("-t", "PDF creator", "---")
 
StringOption font_file = StringOption("-f", ".ttf font file", "")
 
DoubleOption font_size = DoubleOption("-z", "Font size", 8.0f)
 
DoubleOption left_margin = DoubleOption("-m", "Left margin", 20.0f)
 
DoubleOption line_spacing_ratio
 
StringOption output_file_name
 

Detailed Description

Definition at line 24 of file nanobench.h.

Constructor & Destructor Documentation

◆ Config()

Config::Config ( int  argc,
char **  argv 
)
inline

Definition at line 138 of file using_skia_and_harfbuzz.cpp.

138 {
139 BaseOption::Init(std::vector<BaseOption*>{
143 }
char ** argv
Definition: library.h:9
static void Init(const std::vector< BaseOption * > &, int argc, char **argv)
DoubleOption line_spacing_ratio
StringOption author
StringOption keywords
DoubleOption page_width
DoubleOption page_height
StringOption title
DoubleOption left_margin
StringOption creator
StringOption font_file
StringOption output_file_name
DoubleOption font_size
StringOption subject

Member Data Documentation

◆ alpha

SkAlphaType Config::alpha

Definition at line 28 of file nanobench.h.

◆ author

StringOption Config::author = StringOption("-a", "PDF author", "---")

Definition at line 126 of file using_skia_and_harfbuzz.cpp.

◆ backend

Benchmark::Backend Config::backend

Definition at line 26 of file nanobench.h.

◆ color

SkColorType Config::color

Definition at line 27 of file nanobench.h.

◆ colorSpace

sk_sp<SkColorSpace> Config::colorSpace

Definition at line 29 of file nanobench.h.

◆ creator

StringOption Config::creator = StringOption("-t", "PDF creator", "---")

Definition at line 129 of file using_skia_and_harfbuzz.cpp.

◆ ctxOverrides

Definition at line 32 of file nanobench.h.

◆ ctxType

Definition at line 31 of file nanobench.h.

◆ font_file

StringOption Config::font_file = StringOption("-f", ".ttf font file", "")

Definition at line 130 of file using_skia_and_harfbuzz.cpp.

◆ font_size

DoubleOption Config::font_size = DoubleOption("-z", "Font size", 8.0f)

Definition at line 131 of file using_skia_and_harfbuzz.cpp.

◆ keywords

StringOption Config::keywords = StringOption("-c", "PDF keywords", "---")

Definition at line 128 of file using_skia_and_harfbuzz.cpp.

◆ left_margin

DoubleOption Config::left_margin = DoubleOption("-m", "Left margin", 20.0f)

Definition at line 132 of file using_skia_and_harfbuzz.cpp.

◆ line_spacing_ratio

DoubleOption Config::line_spacing_ratio
Initial value:
=
DoubleOption("-h", "Line spacing ratio", 0.25f)

Definition at line 133 of file using_skia_and_harfbuzz.cpp.

◆ name

SkString Config::name

Definition at line 25 of file nanobench.h.

◆ output_file_name

StringOption Config::output_file_name
Initial value:
=
StringOption("-o", ".pdf output file name", "out-skiahf.pdf")

Definition at line 135 of file using_skia_and_harfbuzz.cpp.

◆ page_height

DoubleOption Config::page_height = DoubleOption("-h", "Page height", 800.0f)

Definition at line 124 of file using_skia_and_harfbuzz.cpp.

◆ page_width

DoubleOption Config::page_width = DoubleOption("-w", "Page width", 600.0f)

Definition at line 123 of file using_skia_and_harfbuzz.cpp.

◆ samples

int Config::samples

Definition at line 30 of file nanobench.h.

◆ subject

StringOption Config::subject = StringOption("-k", "PDF subject", "---")

Definition at line 127 of file using_skia_and_harfbuzz.cpp.

◆ surfaceFlags

uint32_t Config::surfaceFlags

Definition at line 33 of file nanobench.h.

◆ title

StringOption Config::title = StringOption("-t", "PDF title", "---")

Definition at line 125 of file using_skia_and_harfbuzz.cpp.


The documentation for this struct was generated from the following files: