Lines Matching defs:sksl

27 #include "src/sksl/SkSLAnalysis.h"
28 #include "src/sksl/SkSLCompiler.h"
29 #include "src/sksl/SkSLUtil.h"
30 #include "src/sksl/codegen/SkSLVMCodeGenerator.h"
31 #include "src/sksl/ir/SkSLFunctionDefinition.h"
32 #include "src/sksl/ir/SkSLVarDeclarations.h"
217 SkRuntimeEffect::Result SkRuntimeEffect::MakeFromSource(SkString sksl,
231 program = compiler->convertProgram(kind, SkSL::String(sksl.c_str(), sksl.size()), settings);
390 SkRuntimeEffect::Result SkRuntimeEffect::MakeForColorFilter(SkString sksl, const Options& options) {
391 auto result = MakeFromSource(std::move(sksl), options, SkSL::ProgramKind::kRuntimeColorFilter);
396 SkRuntimeEffect::Result SkRuntimeEffect::MakeForShader(SkString sksl, const Options& options) {
397 auto result = MakeFromSource(std::move(sksl), options, SkSL::ProgramKind::kRuntimeShader);
402 SkRuntimeEffect::Result SkRuntimeEffect::MakeForBlender(SkString sksl, const Options& options) {
403 auto result = MakeFromSource(std::move(sksl), options, SkSL::ProgramKind::kRuntimeBlender);
442 sk_sp<SkRuntimeEffect> SkMakeCachedRuntimeEffect(SkRuntimeEffect::Result (*make)(SkString sksl),
443 SkString sksl) {
454 explicit Key(const SkString& sksl)
455 : skslHashA(SkOpts::hash(sksl.c_str(), sksl.size(), 0))
456 , skslHashB(SkOpts::hash(sksl.c_str(), sksl.size(), 1)) {}
463 Key key(sksl);
471 auto [effect, err] = make(std::move(sksl));
952 SkString sksl;
953 buffer.readString(&sksl);
956 auto effect = SkMakeCachedRuntimeEffect(SkRuntimeEffect::MakeForColorFilter, std::move(sksl));
1101 SkString sksl;
1102 buffer.readString(&sksl);
1113 auto effect = SkMakeCachedRuntimeEffect(SkRuntimeEffect::MakeForShader, std::move(sksl));
1214 SkString sksl;
1215 buffer.readString(&sksl);
1218 auto effect = SkMakeCachedRuntimeEffect(SkRuntimeEffect::MakeForBlender, std::move(sksl));