Lines Matching refs:SkFlagInfo
101 class SkFlagInfo; variable
171 friend class SkFlagInfo; variable
185 static SkFlagInfo* gHead;
189 friend class SkFlagInfo; variable
197 SK_UNUSED static bool unused_##name = SkFlagInfo::CreateBoolFlag( \
204 SK_UNUSED static bool unused_##name = SkFlagInfo::CreateBoolFlag( \
211 SK_UNUSED static bool unused_##name = SkFlagInfo::CreateStringFlag( \
215 SK_UNUSED static bool unused_##name = SkFlagInfo::CreateStringFlag( \
222 … SK_UNUSED static bool unused_##name = SkFlagInfo::CreateStringFlag(TO_STRING(name), \
234 SkFlagInfo::CreateIntFlag(TO_STRING(name), &FLAGS_##name, defaultValue, helpString)
238 SK_UNUSED static bool unused_##name = SkFlagInfo::CreateIntFlag( \
246 SkFlagInfo::CreateDoubleFlag(TO_STRING(name), &FLAGS_##name, defaultValue, helpString)
250 class SkFlagInfo {
278 SkFlagInfo* info = new SkFlagInfo(name, shortName, kBool_FlagType, helpString, nullptr); in CreateBoolFlag()
304 SkFlagInfo* info = new SkFlagInfo(name, nullptr, kInt_FlagType, helpString, nullptr); in CreateIntFlag()
315 SkFlagInfo* info = new SkFlagInfo(name, shortName, kInt_FlagType, helpString, nullptr); in CreateIntFlag()
328 SkFlagInfo* info = new SkFlagInfo(name, nullptr, kDouble_FlagType, helpString, nullptr); in CreateDoubleFlag()
391 SkFlagInfo* next() { return fNext; } in next()
403 case SkFlagInfo::kBool_FlagType: in defaultValue()
406 case SkFlagInfo::kString_FlagType: return fDefaultString; in defaultValue()
407 case SkFlagInfo::kInt_FlagType: result.printf("%i", fDefaultInt); break; in defaultValue()
408 case SkFlagInfo::kDouble_FlagType: result.printf("%2.2f", fDefaultDouble); break; in defaultValue()
416 case SkFlagInfo::kBool_FlagType: return SkString("bool"); in typeAsString()
417 case SkFlagInfo::kString_FlagType: return SkString("string"); in typeAsString()
418 case SkFlagInfo::kInt_FlagType: return SkString("int"); in typeAsString()
419 case SkFlagInfo::kDouble_FlagType: return SkString("double"); in typeAsString()
425 SkFlagInfo(const char* name, in SkFlagInfo() function
473 SkFlagInfo* fNext;