Home
last modified time | relevance | path

Searched refs:skstd (Results 1 - 25 of 99) sorted by relevance

1234

/third_party/skia/tests/
H A DSkStringViewTest.cpp13 skstd::string_view empty; in DEF_TEST()
18 skstd::string_view helloWorld(str); in DEF_TEST()
22 skstd::string_view hello(str, 5); in DEF_TEST()
26 skstd::string_view copy(hello); in DEF_TEST()
36 skstd::string_view empty(""); in DEF_TEST()
45 skstd::string_view xyz("xyz"); in DEF_TEST()
75 skstd::string_view str("abc"); in DEF_TEST()
76 skstd::string_view::iterator iter = str.begin(); in DEF_TEST()
86 skstd::string_view empty; in DEF_TEST()
91 skstd in DEF_TEST()
[all...]
H A DSkTOptionalTest.cpp14 skstd::optional<int> o; in DEF_TEST()
20 skstd::optional<int> o(skstd::nullopt); in DEF_TEST()
27 skstd::optional<const char*> o; in DEF_TEST()
31 skstd::optional<const char*> o("Bye"); in DEF_TEST()
35 skstd::optional<std::unique_ptr<int>> o; in DEF_TEST()
40 skstd::optional<std::unique_ptr<int>> o(std::make_unique<int>(3)); in DEF_TEST()
47 skstd::optional<const char*> o("test"); in DEF_TEST()
58 skstd::optional<const char*> o("test"); in DEF_TEST()
61 o = skstd in DEF_TEST()
[all...]
H A DSkSLMemoryLayoutTest.cpp60 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("a"), in DEF_TEST()
66 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("b"), context.fTypes.fFloat.get()); in DEF_TEST()
71 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("c"), context.fTypes.fBool.get()); in DEF_TEST()
78 fields2.emplace_back(SkSL::Modifiers(), skstd::string_view("a"), context.fTypes.fInt.get()); in DEF_TEST()
83 fields2.emplace_back(SkSL::Modifiers(), skstd::string_view("b"), in DEF_TEST()
148 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("a"), in DEF_TEST()
154 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("b"), context.fTypes.fFloat.get()); in DEF_TEST()
159 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("c"), context.fTypes.fBool.get()); in DEF_TEST()
166 fields2.emplace_back(SkSL::Modifiers(), skstd::string_view("a"), context.fTypes.fInt.get()); in DEF_TEST()
171 fields2.emplace_back(SkSL::Modifiers(), skstd in DEF_TEST()
[all...]
/third_party/skia/include/sksl/
H A DDSLVar.h38 DSLVarBase(DSLType type, skstd::string_view name, DSLExpression initialValue, PositionInfo pos);
42 DSLVarBase(const DSLModifiers& modifiers, DSLType type, skstd::string_view name,
52 skstd::string_view name() const { in name()
94 DSLExpression field(skstd::string_view name) { in field()
130 skstd::string_view fRawName; // for error reporting
131 skstd::string_view fName;
153 DSLVar(DSLType type, skstd::string_view name = "var", in DSLVar()
160 : DSLVar(type, skstd::string_view(name), std::move(initialValue), pos) {} in DSLVar()
165 DSLVar(const DSLModifiers& modifiers, DSLType type, skstd::string_view name = "var", in DSLVar()
171 : DSLVar(modifiers, type, skstd in DSLVar()
[all...]
H A DDSLType.h88 DSLType(skstd::string_view name);
90 DSLType(skstd::string_view name,
176 friend DSLType Struct(skstd::string_view name, SkSpan<DSLField> fields, PositionInfo pos);
225 DSLField(const DSLType type, skstd::string_view name, in DSLField()
229 DSLField(const DSLModifiers& modifiers, const DSLType type, skstd::string_view name, in DSLField()
239 skstd::string_view fName;
243 friend DSLType Struct(skstd::string_view name, SkSpan<DSLField> fields, PositionInfo pos);
246 DSLType Struct(skstd::string_view name, SkSpan<DSLField> fields,
250 DSLType Struct(skstd::string_view name, Field... fields) { in Struct()
H A DDSLFunction.h30 DSLFunction(const DSLType& returnType, skstd::string_view name, Parameters&... parameters) in DSLFunction()
34 DSLFunction(const DSLModifiers& modifiers, const DSLType& returnType, skstd::string_view name, in DSLFunction()
48 DSLFunction(const DSLType& returnType, skstd::string_view name, in DSLFunction()
53 DSLFunction(const DSLModifiers& modifiers, const DSLType& returnType, skstd::string_view name, in DSLFunction()
105 void init(DSLModifiers modifiers, const DSLType& returnType, skstd::string_view name,
H A DSkSLErrorReporter.h62 void error(skstd::string_view msg, PositionInfo position);
68 void error(int line, skstd::string_view msg);
93 virtual void handleError(skstd::string_view msg, PositionInfo position) = 0;
108 void handleError(skstd::string_view msg, PositionInfo pos) override {
H A DDSLSymbols.h50 DSLPossibleExpression Symbol(skstd::string_view name, PositionInfo pos = PositionInfo::Capture());
55 bool IsType(skstd::string_view name);
60 bool IsBuiltinType(skstd::string_view name);
/third_party/skia/include/private/
H A DSkSLString.h30 explicit String(skstd::string_view s) : INHERITED(s.data(), s.length()) {} in String()
31 // TODO(johnstiles): add operator skstd::string_view
38 return skstd::string_view(data(), size()).starts_with(prefix); in starts_with()
41 return skstd::string_view(data(), size()).ends_with(suffix); in ends_with()
48 String operator+(skstd::string_view s) const;
52 String& operator+=(skstd::string_view s);
59 SK_API String operator+(skstd::string_view left, skstd::string_view right);
67 bool stod(const skstd::string_view& s, SKSL_FLOAT* value);
68 bool stoi(const skstd
[all...]
H A DSkSLSymbol.h34 Symbol(int offset, Kind kind, skstd::string_view name, const Type* type = nullptr) in Symbol()
52 skstd::string_view name() const { in name()
81 skstd::string_view fName;
/third_party/skia/src/sksl/
H A DSkSLDSLParser.h70 skstd::string_view text(Token token);
163 skstd::optional<dsl::DSLType> structDeclaration();
172 dsl::DSLType baseType, skstd::string_view name);
175 dsl::DSLType baseType, skstd::string_view name);
177 skstd::optional<dsl::DSLWrapper<dsl::DSLParameter>> parameter();
181 skstd::string_view layoutIdentifier();
189 skstd::optional<dsl::DSLType> type(dsl::DSLModifiers* modifiers);
201 skstd::optional<dsl::DSLCase> switchCase();
213 skstd::optional<dsl::DSLBlock> block();
249 dsl::DSLExpression swizzle(int line, dsl::DSLExpression base, skstd
[all...]
H A DSkSLDSLParser.cpp80 std::unordered_map<skstd::string_view, DSLParser::LayoutToken>* DSLParser::layoutTokens;
83 layoutTokens = new std::unordered_map<skstd::string_view, LayoutToken>; in InitLayoutMap()
200 skstd::string_view DSLParser::text(Token token) { in text()
201 return skstd::string_view(fText->data() + token.fOffset, token.fLength); in text()
281 skstd::string_view text = this->text(start); in directive()
294 skstd::string_view behaviorText = this->text(behavior); in directive()
335 skstd::optional<DSLType> type = this->type(&modifiers); in declaration()
364 skstd::optional<DSLWrapper<DSLParameter>> parameter = this->parameter(); in functionDeclarationEnd()
387 skstd::optional<DSLBlock> body = this->block(); in functionDeclarationEnd()
446 dsl::DSLType baseType, skstd in globalVarDeclarationEnd()
[all...]
H A DSkSLString.cpp76 String String::operator+(skstd::string_view s) const { in operator +()
97 String& String::operator+=(skstd::string_view s) { in operator +=()
108 String operator+(skstd::string_view left, skstd::string_view right) { in operator +()
148 bool stod(const skstd::string_view& s, SKSL_FLOAT* value) { in stod()
156 bool stoi(const skstd::string_view& s, SKSL_INT* value) { in stoi()
H A DSkSLErrorReporter.cpp15 void ErrorReporter::error(skstd::string_view msg, PositionInfo position) { in error()
24 void ErrorReporter::error(int line, skstd::string_view msg) { in error()
/third_party/skia/src/sksl/ir/
H A DSkSLInterfaceBlock.h34 InterfaceBlock(int line, const Variable& var, skstd::string_view typeName, in InterfaceBlock()
35 skstd::string_view instanceName, int arraySize, in InterfaceBlock()
48 skstd::string_view typeName() const { in typeName()
52 skstd::string_view instanceName() const { in instanceName()
91 skstd::string_view fTypeName;
92 skstd::string_view fInstanceName;
H A DSkSLSetting.h25 Setting(int line, skstd::string_view name, const Type* type) in Setting()
34 const skstd::string_view& name);
40 const skstd::string_view& name() const { in name()
53 skstd::string_view fName;
H A DSkSLType.h63 Field(Modifiers modifiers, skstd::string_view name, const Type* type) in Field()
73 skstd::string_view fName;
108 static std::unique_ptr<Type> MakeArrayType(skstd::string_view name, const Type& componentType,
125 static std::unique_ptr<Type> MakeMatrixType(skstd::string_view name, const char* abbrev,
133 static std::unique_ptr<Type> MakeScalarType(skstd::string_view name, const char* abbrev,
144 static std::unique_ptr<Type> MakeStructType(int line, skstd::string_view name,
153 static std::unique_ptr<Type> MakeVectorType(skstd::string_view name, const char* abbrev,
525 Type(skstd::string_view name, const char* abbrev, TypeKind kind, int line = -1) in Type()
H A DSkSLExtension.h22 Extension(int line, skstd::string_view name) in Extension()
26 skstd::string_view name() const { in name()
39 skstd::string_view fName;
H A DSkSLSetting.cpp71 const CapsLookupMethod* lookup(skstd::string_view name) const { in lookup()
77 std::unordered_map<skstd::string_view, std::unique_ptr<CapsLookupMethod>> fMap;
107 static const Type* get_type(const Context& context, int line, skstd::string_view name) { in get_type()
117 const skstd::string_view& name) { in get_value()
127 const skstd::string_view& name) { in Convert()
H A DSkSLVariable.h45 Variable(int line, const Modifiers* modifiers, skstd::string_view name, const Type* type, in Variable()
55 const Modifiers& modifiers, const Type* baseType, skstd::string_view name, bool isArray,
59 const Modifiers& modifiers, const Type* baseType, skstd::string_view name, bool isArray,
71 skstd::string_view baseName,
H A DSkSLSymbolTable.h77 const Symbol* operator[](skstd::string_view name);
82 void addAlias(skstd::string_view name, const Symbol* symbol);
147 skstd::string_view fName;
157 static SymbolKey MakeSymbolKey(skstd::string_view name) { in MakeSymbolKey()
/third_party/skia/src/sksl/dsl/
H A DDSLSymbols.cpp19 static bool is_type_in_symbol_table(skstd::string_view name, SkSL::SymbolTable* symbols) { in is_type_in_symbol_table()
36 DSLPossibleExpression Symbol(skstd::string_view name, PositionInfo pos) { in Symbol()
40 bool IsType(skstd::string_view name) { in IsType()
44 bool IsBuiltinType(skstd::string_view name) { in IsBuiltinType()
/third_party/skia/experimental/graphite/src/
H A DDrawList.h204 skstd::optional<PaintParams> fPaintParams; // Not present implies depth-only draw
205 skstd::optional<StrokeParams> fStrokeParams; // Not present implies fill
215 , fPaintParams(paint ? skstd::optional<PaintParams>(*paint) : skstd::nullopt) in Draw()
216 , fStrokeParams(stroke ? skstd::optional<StrokeParams>(*stroke) : skstd::nullopt) {} in Draw()
/third_party/skia/src/sksl/codegen/
H A DSkSLGLSLCodeGenerator.h60 void write(skstd::string_view s);
62 void writeLine(skstd::string_view s = skstd::string_view());
76 void writeExtension(skstd::string_view name, bool require = true);
208 static std::unordered_map<skstd::string_view, FunctionClass>* fFunctionClasses;
H A DSkSLMetalCodeGenerator.h80 void write(skstd::string_view s);
82 void writeLine(skstd::string_view s = skstd::string_view());
140 void writeName(skstd::string_view name);
265 std::unordered_set<skstd::string_view> fReservedWords;
267 std::unordered_map<const InterfaceBlock*, skstd::string_view> fInterfaceBlockNameMap;

Completed in 13 milliseconds

1234