Home
last modified time | relevance | path

Searched refs:SkString (Results 1 – 25 of 2058) sorted by relevance

12345678910>>...83

/third_party/skia/src/core/
DSkString.cpp31 SkString* heapBuffer) { in apply_format_string()
184 const SkString::Rec SkString::gEmptyRec(0, 0);
207 sk_sp<SkString::Rec> SkString::Rec::Make(const char text[], size_t len) { in Make()
209 return sk_sp<SkString::Rec>(const_cast<Rec*>(&gEmptyRec)); in Make()
231 void SkString::Rec::ref() const { in ref()
232 if (this == &SkString::gEmptyRec) { in ref()
238 void SkString::Rec::unref() const { in unref()
239 if (this == &SkString::gEmptyRec) { in unref()
249 bool SkString::Rec::unique() const { in unique()
254 int32_t SkString::Rec::getRefCnt() const { in getRefCnt()
[all …]
/third_party/flutter/skia/src/core/
DSkString.cpp23 size_t stackBufferSize, int* length, SkString* heapBuffer) { in apply_format_string()
46 SkString overflow; \
178 const SkString::Rec SkString::gEmptyRec(0, 0);
201 sk_sp<SkString::Rec> SkString::Rec::Make(const char text[], size_t len) { in Make()
203 return sk_sp<SkString::Rec>(const_cast<Rec*>(&gEmptyRec)); in Make()
225 void SkString::Rec::ref() const { in ref()
226 if (this == &SkString::gEmptyRec) { in ref()
232 void SkString::Rec::unref() const { in unref()
233 if (this == &SkString::gEmptyRec) { in unref()
243 bool SkString::Rec::unique() const { in unique()
[all …]
/third_party/skia/include/core/
DSkString.h120 class SK_API SkString {
122 SkString();
123 explicit SkString(size_t len);
124 explicit SkString(const char text[]);
125 SkString(const char text[], size_t len);
126 SkString(const SkString&);
127 SkString(SkString&&);
128 explicit SkString(const std::string&);
129 explicit SkString(skstd::string_view);
130 ~SkString();
[all …]
/third_party/flutter/skia/include/core/
DSkString.h123 class SK_API SkString {
125 SkString();
126 explicit SkString(size_t len);
127 explicit SkString(const char text[]);
128 SkString(const char text[], size_t len);
129 SkString(const SkString&);
130 SkString(SkString&&);
131 ~SkString();
138 bool equals(const SkString&) const;
167 friend bool operator==(const SkString& a, const SkString& b) {
[all …]
/third_party/flutter/skia/tools/flags/
DCommonFlagsConfig.cpp116 static SkString helpString; in config_help_fn()
185 static SkString helpString; in config_extended_help_fn()
195 SkCommandLineConfig::SkCommandLineConfig(const SkString& tag, in SkCommandLineConfig()
196 const SkString& backend, in SkCommandLineConfig()
197 const SkTArray<SkString>& viaParts) in SkCommandLineConfig()
201 static bool parse_option_int(const SkString& value, int* outInt) { in parse_option_int()
213 static bool parse_option_bool(const SkString& value, bool* outBool) { in parse_option_bool()
224 static bool parse_option_gpu_api(const SkString& value, in parse_option_gpu_api()
283 static bool parse_option_gpu_color(const SkString& value, in parse_option_gpu_color()
339 static bool parse_option_gpu_surf_type(const SkString& value, in parse_option_gpu_surf_type()
[all …]
DCommonFlagsConfig.h27 SkCommandLineConfig(const SkString& tag,
28 const SkString& backend,
29 const SkTArray<SkString>& viaParts);
33 const SkString& getTag() const { return fTag; } in getTag()
34 const SkString& getBackend() const { return fBackend; } in getBackend()
35 const SkTArray<SkString>& getViaParts() const { return fViaParts; } in getViaParts()
38 SkString fTag;
39 SkString fBackend;
40 SkTArray<SkString> fViaParts;
54 SkCommandLineConfigGpu(const SkString& tag,
[all …]
/third_party/skia/tools/flags/
DCommonFlagsConfig.cpp153 static SkString helpString; in config_help_fn()
221 static SkString helpString; in config_extended_help_fn()
231 SkCommandLineConfig::SkCommandLineConfig(const SkString& tag, in SkCommandLineConfig()
232 const SkString& backend, in SkCommandLineConfig()
233 const SkTArray<SkString>& viaParts) in SkCommandLineConfig()
247 for (const SkString& via : viaParts) { in SkCommandLineConfig()
259 static bool parse_option_int(const SkString& value, int* outInt) { in parse_option_int()
271 static bool parse_option_bool(const SkString& value, bool* outBool) { in parse_option_bool()
282 static bool parse_option_gpu_api(const SkString& value, in parse_option_gpu_api()
358 static bool parse_option_gpu_color(const SkString& value, in parse_option_gpu_color()
[all …]
DCommonFlagsConfig.h28 SkCommandLineConfig(const SkString& tag,
29 const SkString& backend,
30 const SkTArray<SkString>& viaParts);
35 const SkString& getTag() const { return fTag; } in getTag()
36 const SkString& getBackend() const { return fBackend; } in getBackend()
38 const SkTArray<SkString>& getViaParts() const { return fViaParts; } in getViaParts()
41 SkString fTag;
42 SkString fBackend;
44 SkTArray<SkString> fViaParts;
58 SkCommandLineConfigGpu(const SkString& tag,
[all …]
/third_party/flutter/skia/src/ports/
DSkFontMgr_ohos.cpp25 void SkFontMgr_OHOS::onGetFamilyName(int index, SkString* familyName) const in onGetFamilyName()
103 sk_sp<SkTypeface> SkFontMgr_OHOS::find_family_style_character(const SkString& familyName, in find_family_style_character()
105 const SkString& langTag, SkUnichar character) in find_family_style_character()
131 SkString SkFontMgr_OHOS::find_family_style_character_ohos(const SkString& familyName, in find_family_style_character_ohos()
133 const SkString& langTag, SkUnichar character) in find_family_style_character_ohos()
135 SkString matchingName = findFromCache(familyName, style, elegant, langTag, character); in find_family_style_character_ohos()
162 return SkString(); in find_family_style_character_ohos()
165 SkString SkFontMgr_OHOS::find_family_style_character_hwfont( in find_family_style_character_hwfont()
166 const SkString &familyName, in find_family_style_character_hwfont()
168 const SkFontStyle &style, bool elegant, const SkString &langTag, in find_family_style_character_hwfont()
[all …]
DSkFontMgr_ohos.h75 const SkString& getFamilyName() const { in getFamilyName()
112 SkString fFamilyName;
121 SkLanguage(const SkString& tag) : fTag(tag) { } in SkLanguage()
130 const SkString& getTag() const { return fTag; } in getTag()
161 SkString fTag;
172 SkString skFamilyName;
196 void getStyle(int index, SkFontStyle* style, SkString* name) override { in getStyle()
242 bool matchLanguage(const SkString& lang) { in matchLanguage()
244 SkString langTag(fStylesHost[i]->getLangTag().c_str()); in matchLanguage()
262 SkString fFallbackFor;
[all …]
/third_party/skia/gm/
Dgm.h39 DEF_SIMPLE_GM_BG_NAME(NAME, CANVAS, W, H, SK_ColorWHITE, SkString(#NAME))
41 DEF_SIMPLE_GM_BG_NAME(NAME, CANVAS, W, H, BGCOLOR, SkString(#NAME))
51 DEF_SIMPLE_GM_BG_NAME_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H, SK_ColorWHITE, SkString(#NAME))
53 DEF_SIMPLE_GM_BG_NAME_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H, BGCOLOR, SkString(#NAME))
55 static skiagm::DrawResult SK_MACRO_CONCAT(NAME,_GM)(SkCanvas*, SkString*); \
57 skiagm::DrawResult SK_MACRO_CONCAT(NAME,_GM)(SkCanvas* CANVAS, SkString* ERR_MSG)
78 GrRecordingContext*, SkCanvas*, SkString*); \
79 DEF_GM(return new skiagm::SimpleGpuGM(BGCOLOR, SkString(#NAME), {W,H}, \
82 GrRecordingContext* GR_CONTEXT, SkCanvas* CANVAS, SkString* ERR_MSG)
112 SkString errorMsg; in gpuSetup()
[all …]
Dcolrv1.cpp48 static SkString testTypeToString(ColrV1TestType testType) { in testTypeToString()
51 return SkString("skia"); in testTypeToString()
53 return SkString("gradients"); in testTypeToString()
55 return SkString("scaling"); in testTypeToString()
57 return SkString("extend_mode"); in testTypeToString()
59 return SkString("rotate"); in testTypeToString()
61 return SkString("skew"); in testTypeToString()
63 return SkString("transform"); in testTypeToString()
65 return SkString("clipbox"); in testTypeToString()
67 return SkString("composite"); in testTypeToString()
[all …]
/third_party/flutter/skia/dm/
DDMJsonWriter.h26 SkString name; // E.g. "ninepatch-stretch", "desk_gws.skp"
27 SkString config; // "gpu", "8888", "serialize", "pipe"
28 SkString sourceType; // "gm", "skp", "image"
29 SkString sourceOptions; // "image", "codec", "subset", "scanline"
30 SkString md5; // In ASCII, so 32 bytes long.
31 SkString ext; // Extension of file we wrote: "png", "pdf", ...
32 SkString gamut;
33 SkString transferFn;
34 SkString colorType;
35 SkString alphaType;
[all …]
/third_party/skia/dm/
DDMJsonWriter.h26 SkString name; // E.g. "ninepatch-stretch", "desk_gws.skp"
27 SkString config; // "gpu", "8888", "serialize", "pipe"
28 SkString sourceType; // "gm", "skp", "image"
29 SkString sourceOptions; // "image", "codec", "subset", "scanline"
30 SkString md5; // In ASCII, so 32 bytes long.
31 SkString ext; // Extension of file we wrote: "png", "pdf", ...
32 SkString gamut;
33 SkString transferFn;
34 SkString colorType;
35 SkString alphaType;
[all …]
/third_party/flutter/skia/gm/
Dgm.h38 DEF_SIMPLE_GM_BG_NAME(NAME, CANVAS, W, H, SK_ColorWHITE, SkString(#NAME))
40 DEF_SIMPLE_GM_BG_NAME(NAME, CANVAS, W, H, BGCOLOR, SkString(#NAME))
50 DEF_SIMPLE_GM_BG_NAME_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H, SK_ColorWHITE, SkString(#NAME))
52 DEF_SIMPLE_GM_BG_NAME_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H, BGCOLOR, SkString(#NAME))
54 static skiagm::DrawResult SK_MACRO_CONCAT(NAME,_GM)(SkCanvas*, SkString*); \
56 skiagm::DrawResult SK_MACRO_CONCAT(NAME,_GM)(SkCanvas* CANVAS, SkString* ERR_MSG)
79 GrContext*, GrRenderTargetContext*, SkCanvas*, SkString*); \
80 DEF_GM(return new skiagm::SimpleGpuGM(BGCOLOR, SkString(#NAME), {W,H}, \
84 SkString* ERR_MSG)
113 SkString errorMsg; in draw()
[all …]
/third_party/flutter/skia/src/gpu/glsl/
DGrGLSLShaderBuilder.h36 void appendTextureLookup(SkString* out,
62 void appendColorGamutXform(SkString* out, const char* srcColor,
126 SkString* outName);
157 void appendDecls(const VarArray& vars, SkString* out) const;
206 SkString& extensions() { return fShaderStrings[kExtensions]; } in extensions()
207 SkString& definitions() { return fShaderStrings[kDefinitions]; } in definitions()
208 SkString& precisionQualifier() { return fShaderStrings[kPrecisionQualifier]; } in precisionQualifier()
209 SkString& layoutQualifiers() { return fShaderStrings[kLayoutQualifiers]; } in layoutQualifiers()
210 SkString& uniforms() { return fShaderStrings[kUniforms]; } in uniforms()
211 SkString& inputs() { return fShaderStrings[kInputs]; } in inputs()
[all …]
/third_party/skia/src/pdf/
DSkPDFMetadata.cpp31 static SkString pdf_date(const SkTime::DateTime& dt) { in pdf_date()
68 static SkString to_utf16be(const char* src, size_t len) { in to_utf16be()
69 SkString ret; in to_utf16be()
103 static SkString convert(const SkString& s) { in convert()
110 SkString SkPDF::Metadata::*const valuePtr;
125 const SkString& value = metadata.*(keyValuePtr.valuePtr); in MakeDocumentInformationDict()
156 const SkString& value = metadata.*(keyValuePtr.valuePtr); in CreateUUID()
177 SkString(reinterpret_cast<const char*>(&doc), sizeof(SkUUID))); in MakePdfId()
179 SkString(reinterpret_cast<const char*>(&instance), sizeof(SkUUID))); in MakePdfId()
195 static SkString uuid_to_string(const SkUUID& uuid) { in uuid_to_string()
[all …]
/third_party/flutter/skia/src/pdf/
DSkPDFMetadata.cpp36 static SkString pdf_date(const SkTime::DateTime& dt) { in pdf_date()
73 static SkString to_utf16be(const char* src, size_t len) { in to_utf16be()
74 SkString ret; in to_utf16be()
108 static SkString convert(const SkString& s) { in convert()
111 static SkString convert(const char* src) { in convert()
113 return utf8_is_pdfdocencoding(src, len) ? SkString(src, len) : to_utf16be(src, len); in convert()
119 SkString SkPDF::Metadata::*const valuePtr;
133 const SkString& value = metadata.*(keyValuePtr.valuePtr); in MakeDocumentInformationDict()
170 const SkString& value = metadata.*(keyValuePtr.valuePtr); in CreateUUID()
191 SkString(reinterpret_cast<const char*>(&doc), sizeof(SkUUID))); in MakePdfId()
[all …]
/third_party/skia/src/gpu/glsl/
DGrGLSLShaderBuilder.h41 void appendTextureLookup(SkString* out, SamplerHandle, const char* coordName) const;
64 void appendColorGamutXform(SkString* out, const char* srcColor,
100 SkString newTmpVarName(const char* suffix) { in newTmpVarName()
137 SkString getMangledFunctionName(const char* baseName);
183 void appendDecls(const VarArray& vars, SkString* out) const;
236 SkString& extensions() { return fShaderStrings[kExtensions]; } in extensions()
237 SkString& definitions() { return fShaderStrings[kDefinitions]; } in definitions()
238 SkString& precisionQualifier() { return fShaderStrings[kPrecisionQualifier]; } in precisionQualifier()
239 SkString& layoutQualifiers() { return fShaderStrings[kLayoutQualifiers]; } in layoutQualifiers()
240 SkString& uniforms() { return fShaderStrings[kUniforms]; } in uniforms()
[all …]
/third_party/skia/tests/
DOSPathTest.cpp22 static void test_dir_with_file(skiatest::Reporter* reporter, SkString dir, in test_dir_with_file()
23 SkString filename) { in test_dir_with_file()
30 SkString fullName = SkOSPath::Join(dir.c_str(), filename.c_str()); in test_dir_with_file()
40 SkString basename = SkOSPath::Basename(fullName.c_str()); in test_dir_with_file()
41 SkString dirname = SkOSPath::Dirname(fullName.c_str()); in test_dir_with_file()
48 SkString strippedDir = dir; in test_dir_with_file()
66 SkString dir("dir"); in DEF_TEST()
67 SkString filename("file"); in DEF_TEST()
75 test_dir_with_file(reporter, dir, SkString()); in DEF_TEST()
78 test_dir_with_file(reporter, SkString(), filename); in DEF_TEST()
[all …]
/third_party/flutter/skia/tests/
DOSPathTest.cpp22 static void test_dir_with_file(skiatest::Reporter* reporter, SkString dir, in test_dir_with_file()
23 SkString filename) { in test_dir_with_file()
30 SkString fullName = SkOSPath::Join(dir.c_str(), filename.c_str()); in test_dir_with_file()
40 SkString basename = SkOSPath::Basename(fullName.c_str()); in test_dir_with_file()
41 SkString dirname = SkOSPath::Dirname(fullName.c_str()); in test_dir_with_file()
48 SkString strippedDir = dir; in test_dir_with_file()
66 SkString dir("dir"); in DEF_TEST()
67 SkString filename("file"); in DEF_TEST()
75 test_dir_with_file(reporter, dir, SkString()); in DEF_TEST()
78 test_dir_with_file(reporter, SkString(), filename); in DEF_TEST()
[all …]
/third_party/flutter/skia/src/ports/skia_ohos/
DFontConfig_ohos.h46 using FallbackForMap = SkTHashMap<SkString, FallbackSetPos>;
47 using NamesMap = SkTHashMap<SkString, int>;
84 SkString familyName; // the specified family name of the font style set
93 SkString langs; // the language for which the font style set is
107 int getDefaultFamily(SkString* familyName) const;
108 int getFamilyName(int index, SkString* familyName) const;
121 bool hasError(int err, const SkString& text) const;
132 using AliasMap = SkTHashMap<SkString, std::vector<AliasInfo>>;
133 using AjdustMap = SkTHashMap<SkString, std::vector<AdjustInfo>>;
134 using VariationMap = SkTHashMap<SkString, std::vector<VariationInfo>>;
[all …]
/third_party/skia/modules/skparagraph/samples/
DSampleParagraph.cpp69 SkString name() override { return SkString("Paragraph1"); } in name()
113 style.setFontFamilies({SkString(std::get<0>(para).c_str())}); in drawTest()
176 SkString name() override { return SkString("Paragraph2"); } in name()
200 defaultStyle.setFontFamilies({SkString("monospace")}); in drawCode()
245 style.setFontFamilies({SkString("monospace")}); in style()
276 style.setFontFamilies({SkString(ff)}); in drawText()
328 style.setFontFamilies({SkString("Arial")}); in drawLine()
422 SkString name() override { return SkString("Paragraph3"); } in name()
448 style.setFontFamilies({SkString("sans-serif")}); in drawLine()
545 SkString name() override { return SkString("Paragraph4"); } in name()
[all …]
/third_party/skia/src/utils/
DSkOSPath.cpp10 SkString SkOSPath::Join(const char *rootPath, const char *relativePath) { in Join()
11 SkString result(rootPath); in Join()
19 SkString SkOSPath::Basename(const char* fullPath) { in Basename()
21 return SkString(); in Basename()
29 return SkString(filename); in Basename()
32 SkString SkOSPath::Dirname(const char* fullPath) { in Dirname()
34 return SkString(); in Dirname()
38 return SkString(); in Dirname()
44 return SkString(fullPath, end - fullPath); in Dirname()
/third_party/flutter/skia/src/utils/
DSkOSPath.cpp10 SkString SkOSPath::Join(const char *rootPath, const char *relativePath) { in Join()
11 SkString result(rootPath); in Join()
19 SkString SkOSPath::Basename(const char* fullPath) { in Basename()
21 return SkString(); in Basename()
29 return SkString(filename); in Basename()
32 SkString SkOSPath::Dirname(const char* fullPath) { in Dirname()
34 return SkString(); in Dirname()
38 return SkString(); in Dirname()
44 return SkString(fullPath, end - fullPath); in Dirname()

12345678910>>...83