/external/skia/src/sksl/ |
D | SkSLContext.h | 22 : fInvalid_Type(new Type(SkString("<INVALID>"))) in Context() 23 , fVoid_Type(new Type(SkString("void"))) in Context() 24 , fDouble_Type(new Type(SkString("double"), true)) in Context() 25 , fDVec2_Type(new Type(SkString("dvec2"), *fDouble_Type, 2)) in Context() 26 , fDVec3_Type(new Type(SkString("dvec3"), *fDouble_Type, 3)) in Context() 27 , fDVec4_Type(new Type(SkString("dvec4"), *fDouble_Type, 4)) in Context() 28 , fFloat_Type(new Type(SkString("float"), true, { fDouble_Type.get() })) in Context() 29 , fVec2_Type(new Type(SkString("vec2"), *fFloat_Type, 2)) 30 , fVec3_Type(new Type(SkString("vec3"), *fFloat_Type, 3)) 31 , fVec4_Type(new Type(SkString("vec4"), *fFloat_Type, 4)) [all …]
|
D | SkSLToken.h | 134 static SkString OperatorName(Kind kind) { in OperatorName() 136 case Token::PLUS: return SkString("+"); in OperatorName() 137 case Token::MINUS: return SkString("-"); in OperatorName() 138 case Token::STAR: return SkString("*"); in OperatorName() 139 case Token::SLASH: return SkString("/"); in OperatorName() 140 case Token::PERCENT: return SkString("%"); in OperatorName() 141 case Token::SHL: return SkString("<<"); in OperatorName() 142 case Token::SHR: return SkString(">>"); in OperatorName() 143 case Token::LOGICALNOT: return SkString("!"); in OperatorName() 144 case Token::LOGICALAND: return SkString("&&"); in OperatorName() [all …]
|
D | SkSLSPIRVCodeGenerator.cpp | 37 fIntrinsicMap[SkString("round")] = ALL_GLSL(Round); in setupIntrinsics() 38 fIntrinsicMap[SkString("roundEven")] = ALL_GLSL(RoundEven); in setupIntrinsics() 39 fIntrinsicMap[SkString("trunc")] = ALL_GLSL(Trunc); in setupIntrinsics() 40 fIntrinsicMap[SkString("abs")] = BY_TYPE_GLSL(FAbs, SAbs, SAbs); in setupIntrinsics() 41 fIntrinsicMap[SkString("sign")] = BY_TYPE_GLSL(FSign, SSign, SSign); in setupIntrinsics() 42 fIntrinsicMap[SkString("floor")] = ALL_GLSL(Floor); in setupIntrinsics() 43 fIntrinsicMap[SkString("ceil")] = ALL_GLSL(Ceil); in setupIntrinsics() 44 fIntrinsicMap[SkString("fract")] = ALL_GLSL(Fract); in setupIntrinsics() 45 fIntrinsicMap[SkString("radians")] = ALL_GLSL(Radians); in setupIntrinsics() 46 fIntrinsicMap[SkString("degrees")] = ALL_GLSL(Degrees); in setupIntrinsics() [all …]
|
D | SkSLUtil.cpp | 20 SkString to_string(double value) { in to_string() 30 SkString result(buffer); in to_string() 39 SkString to_string(int32_t value) { in to_string() 43 SkString to_string(uint32_t value) { in to_string() 47 SkString to_string(int64_t value) { in to_string() 51 SkString to_string(uint64_t value) { in to_string() 55 int stoi(SkString s) { in stoi() 65 double stod(SkString s) { in stod() 74 long stol(SkString s) { in stol() 97 SkString operator+(const SkString& s, const char* c) { in operator +() [all …]
|
D | SkSLUtil.h | 104 SkString operator+(const SkString& s, const char* c); 106 SkString operator+(const char* c, const SkString& s); 108 SkString operator+(const SkString& s1, const SkString& s2); 110 bool operator==(const SkString& s1, const char* s2); 112 bool operator!=(const SkString& s1, const char* s2); 114 bool operator!=(const char* s1, const SkString& s2); 116 SkString to_string(double value); 118 SkString to_string(int32_t value); 120 SkString to_string(uint32_t value); 122 SkString to_string(int64_t value); [all …]
|
/external/skia/tools/debugger/ |
D | SkObjectParser.cpp | 23 SkString* SkObjectParser::BitmapToString(const SkBitmap& bitmap) { in BitmapToString() 24 SkString* mBitmap = new SkString("SkBitmap: "); in BitmapToString() 63 SkString* SkObjectParser::ImageToString(const SkImage* image) { in ImageToString() 64 SkString* str = new SkString("SkImage: "); in ImageToString() 86 SkString* SkObjectParser::BoolToString(bool doAA) { in BoolToString() 87 SkString* mBool = new SkString("Bool doAA: "); in BoolToString() 96 SkString* SkObjectParser::CustomTextToString(const char* text) { in CustomTextToString() 97 SkString* mText = new SkString(text); in CustomTextToString() 101 SkString* SkObjectParser::IntToString(int x, const char* text) { in IntToString() 102 SkString* mInt = new SkString(text); in IntToString() [all …]
|
D | SkObjectParser.h | 26 static SkString* BitmapToString(const SkBitmap& bitmap); 32 static SkString* ImageToString(const SkImage* image); 38 static SkString* BoolToString(bool doAA); 43 static SkString* CustomTextToString(const char* text); 51 static SkString* IntToString(int x, const char* text); 56 static SkString* IRectToString(const SkIRect& rect); 62 static SkString* MatrixToString(const SkMatrix& matrix); 68 static SkString* PaintToString(const SkPaint& paint); 74 static SkString* PathToString(const SkPath& path); 81 static SkString* PointsToString(const SkPoint pts[], size_t count); [all …]
|
/external/skia/src/core/ |
D | SkString.cpp | 200 const SkString::Rec SkString::gEmptyRec = { 0, 0, 0 }; 223 SkString::Rec* SkString::AllocRec(const char text[], size_t len) { in AllocRec() 243 SkString::Rec* SkString::RefRec(Rec* src) { in RefRec() 251 void SkString::validate() const { in validate() 267 SkString::SkString() : fRec(const_cast<Rec*>(&gEmptyRec)) { in SkString() function in SkString 270 SkString::SkString(size_t len) { in SkString() function in SkString 274 SkString::SkString(const char text[]) { in SkString() function in SkString 280 SkString::SkString(const char text[], size_t len) { in SkString() function in SkString 284 SkString::SkString(const SkString& src) { in SkString() function in SkString 290 SkString::SkString(SkString&& src) { in SkString() function in SkString [all …]
|
D | SkStringUtils.h | 13 class SkString; variable 21 void SkAddFlagToString(SkString* string, bool flag, 30 void SkAppendScalar(SkString*, SkScalar, SkScalarAsStringType); 32 static inline void SkAppendScalarDec(SkString* str, SkScalar value) { in SkAppendScalarDec() 36 static inline void SkAppendScalarHex(SkString* str, SkScalar value) { in SkAppendScalarHex() 41 SkString SkTabString(const SkString& string, int tabCnt);
|
/external/skia/include/core/ |
D | SkString.h | 121 class SK_API SkString { 123 SkString(); 124 explicit SkString(size_t len); 125 explicit SkString(const char text[]); 126 SkString(const char text[], size_t len); 127 SkString(const SkString&); 128 SkString(SkString&&); 129 ~SkString(); 136 bool equals(const SkString&) const; 165 friend bool operator==(const SkString& a, const SkString& b) { [all …]
|
/external/skia/src/gpu/glsl/ |
D | GrGLSLShaderBuilder.h | 36 void appendTextureLookup(SkString* out, 62 void appendColorGamutXform(SkString* out, const char* srcColor, 71 void appendTexelFetch(SkString* out, SamplerHandle, const char* coordExpr) const; 77 void appendImageStorageLoad(SkString* out, ImageStorageHandle, const char* coordExpr); 137 SkString* outName); 168 void appendDecls(const VarArray& vars, SkString* out) const; 217 SkString& versionDecl() { return fShaderStrings[kVersionDecl]; } in versionDecl() 218 SkString& extensions() { return fShaderStrings[kExtensions]; } in extensions() 219 SkString& definitions() { return fShaderStrings[kDefinitions]; } in definitions() 220 SkString& precisionQualifier() { return fShaderStrings[kPrecisionQualifier]; } in precisionQualifier() [all …]
|
/external/skia/tools/flags/ |
D | SkCommonFlagsConfig.cpp | 102 static SkString helpString; in config_help_fn() 161 static SkString helpString; in config_extended_help_fn() 171 SkCommandLineConfig::SkCommandLineConfig(const SkString& tag, const SkString& backend, in SkCommandLineConfig() 172 const SkTArray<SkString>& viaParts) in SkCommandLineConfig() 182 const SkString& tag, const SkTArray<SkString>& viaParts, ContextType contextType, bool useNVPR, in SkCommandLineConfigGpu() 185 : SkCommandLineConfig(tag, SkString("gpu"), viaParts) in SkCommandLineConfigGpu() 214 static bool parse_option_int(const SkString& value, int* outInt) { in parse_option_int() 226 static bool parse_option_bool(const SkString& value, bool* outBool) { in parse_option_bool() 237 static bool parse_option_gpu_api(const SkString& value, in parse_option_gpu_api() 293 static bool parse_option_gpu_color(const SkString& value, in parse_option_gpu_color() [all …]
|
D | SkCommonFlagsConfig.h | 31 SkCommandLineConfig(const SkString& tag, const SkString& backend, 32 const SkTArray<SkString>& viaParts); 37 const SkString& getTag() const { return fTag; } in getTag() 38 const SkString& getBackend() const { return fBackend; } in getBackend() 39 const SkTArray<SkString>& getViaParts() const { return fViaParts; } in getViaParts() 41 SkString fTag; 42 SkString fBackend; 43 SkTArray<SkString> fViaParts; 56 SkCommandLineConfigGpu(const SkString& tag, const SkTArray<SkString>& viaParts,
|
D | SkCommandLineFlags.h | 128 explicit StringArray(const SkTArray<SkString>& strings) in StringArray() 169 SkTArray<SkString> fStrings; 186 static SkString gUsage; 404 const SkString& name() const { return fName; } in name() 406 const SkString& shortName() const { return fShortName; } in shortName() 408 const SkString& help() const { return fHelpString; } in help() 409 const SkString& extendedHelp() const { return fExtendedHelpString; } in extendedHelp() 411 SkString defaultValue() const { in defaultValue() 412 SkString result; in defaultValue() 431 SkString typeAsString() const { in typeAsString() [all …]
|
/external/skia/src/pdf/ |
D | SkPDFMetadata.cpp | 17 static SkString pdf_date(const SkTime::DateTime& dt) { in pdf_date() 34 SkString SkDocument::PDFMetadata::*const valuePtr; 48 const SkString& value = metadata.*(keyValuePtr.valuePtr); in MakeDocumentInformationDict() 93 const SkString& value = metadata.*(keyValuePtr.valuePtr); in CreateUUID() 115 SkString(reinterpret_cast<const char*>(&doc), sizeof(UUID))); in MakePdfId() 117 SkString(reinterpret_cast<const char*>(&instance), sizeof(UUID))); in MakePdfId() 129 static SkString uuid_to_string(const SkPDFMetadata::UUID& uuid) { in uuid_to_string() 147 return SkString(buffer, 36); in uuid_to_string() 154 PDFXMLObject(SkString xml) : fXML(std::move(xml)) {} in PDFXMLObject() 172 const SkString fXML; [all …]
|
/external/skia/tests/ |
D | OSPathTest.cpp | 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() 78 test_dir_with_file(reporter, SkString(), filename); in DEF_TEST() [all …]
|
D | GrGLSLPrettyPrintTest.cpp | 16 const SkString input1("#this is not a realshader\nvec4 some stuff;outside of a function;" 19 const SkString input2("{nowin a function;{indenting;{abit more;dreadedfor((;;)(;)((;;);)){" 23 const SkString input3(" dangerous\ndo so at your own\n risk*/;\n\n\t\t\t\n" 25 const SkString input4("breaking in comment"); 26 const SkString input5("continuing the comment"); 27 const SkString input6("\n}}a; little ; love; for ; leading; spaces;} " 31 const SkString output1( 86 const SkString neg1("{;;{{{{;;;{{{{{{{{{{{"); 87 const SkString neg2("###\n##\n#####(((((((((((((unbalanced verything;;;"); 88 const SkString neg3("}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}" [all …]
|
/external/skia/src/utils/ |
D | SkOSPath.cpp | 10 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()
|
D | SkDumpCanvas.cpp | 27 static void toString(const SkRect& r, SkString* str) { in toString() 33 static void toString(const SkIRect& r, SkString* str) { in toString() 37 static void toString(const SkRRect& rrect, SkString* str) { in toString() 62 static void dumpVerbs(const SkPath& path, SkString* str) { in dumpVerbs() 93 static void toString(const SkPath& path, SkString* str) { in toString() 99 SkString s; in toString() 115 static void toString(const SkRegion& rgn, SkString* str) { in toString() 139 SkString* str) { in toString() 201 SkString str; in getSaveLayerStrategy() 226 SkString str; in didConcat() [all …]
|
/external/skia/tools/skdiff/ |
D | skdiff_utils.h | 15 class SkString; variable 31 bool write_bitmap(const SkString& path, const SkBitmap& bitmap); 36 SkString filename_to_diff_filename(const SkString& filename); 41 SkString filename_to_white_filename(const SkString& filename); 49 const SkString& outputDir, 50 const SkString& filename);
|
/external/skia/tools/ |
D | UrlDataManager.h | 24 UrlDataManager(SkString rootUrl); 31 SkString addData(SkData*, const char* contentType); 34 SkString fUrl; 35 SkString fContentType; 42 UrlData* getDataFromUrl(SkString url) { in getDataFromUrl() 60 static const SkString& GetKey(const UrlData& data) { in GetKey() 64 static uint32_t Hash(const SkString& key) { in Hash() 70 SkString fRootUrl; 72 SkTDynamicHash<UrlData, SkString, ReverseLookupTrait> fUrlLookup;
|
/external/skia/src/gpu/vk/ |
D | GrVkExtensions.h | 21 GrVkExtensions() : fInstanceExtensionStrings(new SkTArray<SkString>) in GrVkExtensions() 22 , fDeviceExtensionStrings(new SkTArray<SkString>) in GrVkExtensions() 23 , fInstanceLayerStrings(new SkTArray<SkString>) in GrVkExtensions() 24 , fDeviceLayerStrings(new SkTArray<SkString>) {} in GrVkExtensions() 40 std::unique_ptr<SkTArray<SkString>> fInstanceExtensionStrings; 41 std::unique_ptr<SkTArray<SkString>> fDeviceExtensionStrings; 42 std::unique_ptr<SkTArray<SkString>> fInstanceLayerStrings; 43 std::unique_ptr<SkTArray<SkString>> fDeviceLayerStrings;
|
/external/skia/dm/ |
D | DMSrcSink.h | 27 struct ImplicitString : public SkString { 29 ImplicitString(const T& s) : SkString(s) {} in ImplicitString() 30 ImplicitString() : SkString("") {} in ImplicitString() 37 Error(const SkString& s) : fMsg(s), fFatal(!this->isEmpty()) {} in Error() 43 static Error Nonfatal(const SkString& s) { return Nonfatal(s.c_str()); } in Nonfatal() 55 SkString fMsg; 87 virtual Error SK_WARN_UNUSED_RESULT draw(const Src&, SkBitmap*, SkWStream*, SkString* log) 300 Error draw(const Src& src, SkBitmap*, SkWStream*, SkString*) const override; 313 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 334 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; [all …]
|
/external/skia/src/sksl/ir/ |
D | SkSLType.h | 29 Field(Modifiers modifiers, SkString name, const Type* type) in Field() 34 const SkString description() const { in description() 39 SkString fName; 56 Type(SkString name) in Type() 61 Type(SkString name, std::vector<const Type*> types) in Type() 67 Type(Position position, SkString name, std::vector<Field> fields) in Type() 73 Type(SkString name, bool isNumber) in Type() 81 Type(SkString name, bool isNumber, std::vector<const Type*> coercibleTypes) in Type() 90 Type(SkString name, const Type& componentType, int columns) in Type() 94 Type(SkString name, Kind kind, const Type& componentType, int columns) in Type() [all …]
|
/external/skia/src/gpu/gl/ |
D | GrGLExtensions.cpp | 17 inline bool extension_compare(const SkString& a, const SkString& b) { in extension_compare() 23 static int find_string(const SkTArray<SkString>& strings, const char ext[]) { in find_string() 27 SkString extensionStr(ext); in find_string() 28 int idx = SkTSearch<SkString, extension_compare>(&strings.front(), in find_string() 31 sizeof(SkString)); in find_string() 35 GrGLExtensions::GrGLExtensions(const GrGLExtensions& that) : fStrings(new SkTArray<SkString>) { in GrGLExtensions() 45 static void eat_space_sep_strings(SkTArray<SkString>* out, const char in[]) { in eat_space_sep_strings() 111 SkTLessFunctionToFunctorAdaptor<SkString, extension_compare> cmp; in init() 133 SkTLessFunctionToFunctorAdaptor<SkString, extension_compare> cmp; in remove() 144 SkTLessFunctionToFunctorAdaptor<SkString, extension_compare> cmp; in add()
|