Home
last modified time | relevance | path

Searched refs:SkString (Results 1 - 25 of 1098) sorted by relevance

12345678910>>...44

/third_party/skia/src/core/
H A DSkString.cpp8 #include "include/core/SkString.h"
31 SkString* heapBuffer) { in apply_format_string()
37 SkDebugf("SkString: vsnprintf reported error."); 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 in ref()
275 SkString::SkString() : fRec(const_cast<Rec*>(&gEmptyRec)) { SkString() function in SkString
278 SkString::SkString(size_t len) { SkString() function in SkString
282 SkString::SkString(const char text[]) { SkString() function in SkString
288 SkString::SkString(const char text[], size_t len) { SkString() function in SkString
292 SkString::SkString(const SkString& src) : fRec(src.validate().fRec) {} SkString() function in SkString
294 SkString::SkString(SkString&& src) : fRec(std::move(src.validate().fRec)) { SkString() function in SkString
298 SkString::SkString(const std::string& src) { SkString() function in SkString
302 SkString::SkString(skstd::string_view src) { SkString() function in SkString
[all...]
H A DSkStringUtils.h13 class SkString;
20 void SkAppendScalar(SkString*, SkScalar, SkScalarAsStringType);
22 static inline void SkAppendScalarDec(SkString* str, SkScalar value) { in SkAppendScalarDec()
26 static inline void SkAppendScalarHex(SkString* str, SkScalar value) { in SkAppendScalarHex()
31 SkString SkTabString(const SkString& string, int tabCnt);
33 SkString SkStringFromUTF16(const uint16_t* src, size_t count);
/third_party/skia/include/core/
H A DSkString.h114 /** \class SkString
120 class SK_API SkString { class
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
[all...]
/third_party/skia/tools/flags/
H A 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
[all...]
H A 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
[all...]
H A DCommandLineFlags.h11 #include "include/core/SkString.h"
129 explicit StringArray(const SkTArray<SkString>& strings) : fStrings(strings) {} in StringArray()
159 const SkString* begin() const { return fStrings.begin(); } in begin()
160 const SkString* end() const { return fStrings.end(); } in end()
169 SkTArray<SkString> fStrings;
186 static SkString gUsage;
393 const SkString& name() const { return fName; } in name()
395 const SkString& shortName() const { return fShortName; } in shortName()
397 const SkString& help() const { return fHelpString; } in help()
398 const SkString in help()
[all...]
/third_party/skia/gm/
H A Dgm.h15 #include "include/core/SkString.h"
39 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_MS
[all...]
H A Dlcdtext.cpp18 #include "include/core/SkString.h"
26 SkString onShortName() override { return SkString("lcdtext"); }
32 drawText(canvas, SkString("TEXT: SubpixelTrue LCDRenderTrue"),
34 drawText(canvas, SkString("TEXT: SubpixelTrue LCDRenderFalse"),
36 drawText(canvas, SkString("TEXT: SubpixelFalse LCDRenderTrue"),
38 drawText(canvas, SkString("TEXT: SubpixelFalse LCDRenderFalse"),
42 void drawText(SkCanvas* canvas, const SkString& string, in drawText()
72 SkString onShortName() override { return SkString("lcdtextsiz
[all...]
H A Dcolrv1.cpp17 #include "include/core/SkString.h"
48 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("clipbo in testTypeToString()
[all...]
H A Dfontregen.cpp27 #include "include/core/SkString.h"
39 static sk_sp<SkTextBlob> make_blob(const SkString& text, const SkFont& font) { in make_blob()
56 SkString onShortName() override { return SkString("fontregen"); }
65 static const SkString kTexts[] = {
66 SkString("abcdefghijklmnopqrstuvwxyz"),
67 SkString("ABCDEFGHI"),
68 SkString("NOPQRSTUV")
83 DrawResult onDraw(SkCanvas* canvas, SkString* errorMsg) override {
125 SkString onShortNam
[all...]
/third_party/skia/dm/
H A DDMJsonWriter.h11 #include "include/core/SkString.h"
26 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 colorTyp
[all...]
/third_party/skia/src/gpu/glsl/
H A 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 in layoutQualifiers()
[all...]
H A DGrGLSLProgramBuilder.h28 class SkString;
52 void appendUniformDecls(GrShaderFlags visibility, SkString*) const;
78 SkString nameVariable(char prefix, const char* name, bool mangle = true);
134 SkString getMangleSuffix() const;
137 void nameExpression(SkString*, const char* baseName);
139 bool emitAndInstallPrimProc(SkString* outputColor, SkString* outputCoverage);
142 bool emitAndInstallFragProcs(SkString* colorInOut, SkString* coverageInOut);
144 SkString emitFragPro
[all...]
H A DGrGLSLProgramBuilder.cpp53 SkString inputColor; in emitAndInstallProcs()
54 SkString inputCoverage; in emitAndInstallProcs()
73 bool GrGLSLProgramBuilder::emitAndInstallPrimProc(SkString* outputColor, SkString* outputCoverage) { in emitAndInstallPrimProc()
100 SkString name; in emitAndInstallPrimProc()
130 bool GrGLSLProgramBuilder::emitAndInstallFragProcs(SkString* color, SkString* coverage) { in emitAndInstallFragProcs()
135 SkString* inOut = this->pipeline().isColorFragmentProcessor(i) ? color : coverage; in emitAndInstallFragProcs()
136 SkString output; in emitAndInstallFragProcs()
148 SkString GrGLSLProgramBuilde
[all...]
H A DGrGLSLShaderBuilder.cpp37 SkString tempDecl; in declAppend()
47 SkString GrGLSLShaderBuilder::getMangledFunctionName(const char* baseName) { in getMangledFunctionName()
101 static inline void append_texture_swizzle(SkString* out, GrSwizzle swizzle) { in append_texture_swizzle()
107 void GrGLSLShaderBuilder::appendTextureLookup(SkString* out, in appendTextureLookup()
118 SkString lookup; in appendTextureLookup()
132 SkString lookup; in appendTextureLookupAndBlend()
151 SkString load; in appendInputLoad()
157 void GrGLSLShaderBuilder::appendColorGamutXform(SkString* out, in appendColorGamutXform()
175 SkString body; in appendColorGamutXform()
205 SkString funcNam in appendColorGamutXform()
[all...]
/third_party/skia/src/ports/skia_ohos/
H A DFontConfig_ohos.h16 #include "SkString.h"
49 using FallbackForMap = SkTHashMap<SkString, FallbackSetPos>;
50 using NamesMap = SkTHashMap<SkString, int>;
89 SkString familyName; // the specified family name of the font style set
98 SkString langs; // the language for which the font style set is
112 int getDefaultFamily(SkString* familyName) const;
113 int getFamilyName(int index, SkString* familyName) const;
127 bool hasError(int err, const SkString& text) const;
144 using AliasMap = SkTHashMap<SkString, std::vector<AliasInfo>>;
145 using AjdustMap = SkTHashMap<SkString, st
[all...]
/third_party/skia/src/utils/
H A 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/skia/src/pdf/
H A DSkPDFMetadata.cpp31 static SkString pdf_date(const SkTime::DateTime& dt) { in pdf_date()
62 // Please Note: This "abuses" the SkString, which "should" only hold UTF8.
63 // But the SkString is written as if it is really just a ref-counted array of
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 in CreateUUID()
[all...]
/third_party/skia/include/docs/
H A DSkPDFDocument.h13 #include "include/core/SkString.h"
45 const std::vector<SkString>& values);
62 SkString fTypeString;
67 SkString fAlt;
68 SkString fLang;
76 SkString fTitle;
80 SkString fAuthor;
84 SkString fSubject;
89 SkString fKeywords;
95 SkString fCreato
[all...]
/third_party/skia/src/gpu/
H A DGrShaderVar.h11 #include "include/core/SkString.h"
40 GrShaderVar(SkString name, GrSLType type, int arrayCount = kNonArray) in GrShaderVar()
46 : GrShaderVar(SkString(name), type, arrayCount) {} in GrShaderVar()
48 GrShaderVar(SkString name, GrSLType type, TypeModifier typeModifier) in GrShaderVar()
54 : GrShaderVar(SkString(name), type, typeModifier) {} in GrShaderVar()
56 GrShaderVar(SkString name, GrSLType type, TypeModifier typeModifier, int arrayCount) in GrShaderVar()
62 GrShaderVar(SkString name, GrSLType type, TypeModifier typeModifier, int arrayCount, in GrShaderVar()
63 SkString layoutQualifier, SkString extraModifier) in GrShaderVar()
91 const SkString
[all...]
/third_party/skia/tests/
H A DOSPathTest.cpp8 #include "include/core/SkString.h"
22 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()
[all...]
/third_party/skia/tools/skdiff/
H A Dskdiff_utils.h15 class SkString;
32 bool write_bitmap(const SkString& path, const SkBitmap& bitmap);
37 SkString filename_to_diff_filename(const SkString& filename);
42 SkString filename_to_white_filename(const SkString& filename);
50 const SkString& outputDir,
51 const SkString& filename);
/third_party/skia/tools/
H A DUrlDataManager.h13 #include "include/core/SkString.h"
27 UrlDataManager(SkString rootUrl);
34 SkString addData(SkData*, const char* contentType);
37 SkString fUrl;
38 SkString fContentType;
45 UrlData* getDataFromUrl(SkString url) { in getDataFromUrl()
84 static const SkString& GetKey(const UrlData& data) { in GetKey()
88 static uint32_t Hash(const SkString& key) { in Hash()
94 SkString fRootUrl;
96 SkTDynamicHash<UrlData, SkString, ReverseLookupTrai
[all...]
/third_party/skia/modules/skparagraph/samples/
H A DSampleParagraph.cpp58 SkString tmpDir = skiatest::GetTmpDir();
60 SkString path = SkOSPath::Join(tmpDir.c_str(), name);
69 SkString name() override { return SkString("Paragraph1"); }
113 style.setFontFamilies({SkString(std::get<0>(para).c_str())}); in drawTest()
176 SkString name() override { return SkString("Paragraph2"); }
200 defaultStyle.setFontFamilies({SkString("monospace")}); in drawCode()
245 style.setFontFamilies({SkString("monospace")}); in style()
276 style.setFontFamilies({SkString(f in drawText()
[all...]
/third_party/skia/modules/skparagraph/include/
H A DTypefaceFontProvider.h12 #include "include/core/SkString.h"
19 explicit TypefaceFontStyleSet(const SkString& familyName);
22 void getStyle(int index, SkFontStyle*, SkString* name) override;
26 SkString getFamilyName() const { return fFamilyName; } in getFamilyName()
27 SkString getAlias() const { return fAlias; } in getAlias()
33 SkString fFamilyName;
34 SkString fAlias;
40 size_t registerTypeface(sk_sp<SkTypeface> typeface, const SkString& alias);
44 void onGetFamilyName(int index, SkString* familyName) const override;
75 SkTHashMap<SkString, sk_s
[all...]

Completed in 14 milliseconds

12345678910>>...44