|
| ExtendedOptions (const SkString &optionsString, bool *outParseSucceeded) |
|
bool | get_option_gpu_color (const char *optionKey, SkColorType *outColorType, SkAlphaType *alphaType, bool optional=true) const |
|
bool | get_option_gpu_api (const char *optionKey, SkCommandLineConfigGpu::ContextType *outContextType, bool *outFakeGLESVersion2, bool optional=true) const |
|
bool | get_option_gpu_surf_type (const char *optionKey, SkCommandLineConfigGpu::SurfType *outSurfType, bool optional=true) const |
|
bool | get_option_int (const char *optionKey, int *outInt, bool optional=true) const |
|
bool | get_option_bool (const char *optionKey, bool *outBool, bool optional=true) const |
|
Definition at line 436 of file CommonFlagsConfig.cpp.
◆ ExtendedOptions()
ExtendedOptions::ExtendedOptions |
( |
const SkString & |
optionsString, |
|
|
bool * |
outParseSucceeded |
|
) |
| |
|
inline |
Definition at line 438 of file CommonFlagsConfig.cpp.
438 {
441 for (
int i = 0;
i < optionParts.
size(); ++
i) {
444 if (keyValueParts.
size() != 2) {
445 *outParseSucceeded = false;
446 return;
447 }
450 if (fOptionsMap.
find(
key) ==
nullptr) {
452 } else {
453
454 *outParseSucceeded = false;
455 return;
456 }
457 }
458 *outParseSucceeded = true;
459 }
void SkStrSplit(const char *str, const char *delimiters, SkStrSplitMode splitMode, TArray< SkString > *out)
const char * c_str() const
V * find(const K &key) const
◆ get_option_bool()
bool ExtendedOptions::get_option_bool |
( |
const char * |
optionKey, |
|
|
bool * |
outBool, |
|
|
bool |
optional = true |
|
) |
| const |
|
inline |
Definition at line 557 of file CommonFlagsConfig.cpp.
557 {
559 if (optionValue == nullptr) {
560 return optional;
561 }
563 }
static bool parse_option_bool(const SkString &value, bool *outBool)
◆ get_option_gpu_api()
Definition at line 472 of file CommonFlagsConfig.cpp.
475 {
477 if (optionValue == nullptr) {
478 return optional;
479 }
481 }
static bool parse_option_gpu_api(const SkString &value, SkCommandLineConfigGpu::ContextType *outContextType, bool *outFakeGLESVersion2)
◆ get_option_gpu_color()
bool ExtendedOptions::get_option_gpu_color |
( |
const char * |
optionKey, |
|
|
SkColorType * |
outColorType, |
|
|
SkAlphaType * |
alphaType, |
|
|
bool |
optional = true |
|
) |
| const |
|
inline |
Definition at line 461 of file CommonFlagsConfig.cpp.
464 {
466 if (optionValue == nullptr) {
467 return optional;
468 }
470 }
static bool parse_option_gpu_color(const SkString &value, SkColorType *outColorType, SkAlphaType *alphaType)
◆ get_option_gpu_surf_type()
Definition at line 539 of file CommonFlagsConfig.cpp.
541 {
543 if (optionValue == nullptr) {
544 return optional;
545 }
547 }
static bool parse_option_gpu_surf_type(const SkString &value, SkCommandLineConfigGpu::SurfType *surfType)
◆ get_option_int()
bool ExtendedOptions::get_option_int |
( |
const char * |
optionKey, |
|
|
int * |
outInt, |
|
|
bool |
optional = true |
|
) |
| const |
|
inline |
Definition at line 549 of file CommonFlagsConfig.cpp.
549 {
551 if (optionValue == nullptr) {
552 return optional;
553 }
555 }
static bool parse_option_int(const SkString &value, int *outInt)
The documentation for this class was generated from the following file: