Home
last modified time | relevance | path

Searched refs:SkRuntimeEffect (Results 1 – 25 of 63) sorted by relevance

123

/third_party/skia/src/core/
DSkRuntimeEffectPriv.h23 static bool SupportsConstantOutputForConstantInput(sk_sp<SkRuntimeEffect> effect) { in SupportsConstantOutputForConstantInput()
27 static SkRuntimeEffect::Options ES3Options() { in ES3Options()
28 SkRuntimeEffect::Options options; in ES3Options()
33 static void EnableFragCoord(SkRuntimeEffect::Options* options) { in EnableFragCoord()
46 sk_sp<SkRuntimeEffect> SkMakeCachedRuntimeEffect(SkRuntimeEffect::Result (*make)(SkString sksl),
49 inline sk_sp<SkRuntimeEffect> SkMakeCachedRuntimeEffect(SkRuntimeEffect::Result (*make)(SkString), in SkMakeCachedRuntimeEffect()
56 inline sk_sp<SkRuntimeEffect> SkMakeRuntimeEffect(
57 SkRuntimeEffect::Result (*make)(SkString, const SkRuntimeEffect::Options&),
59 SkRuntimeEffect::Options options = SkRuntimeEffect::Options{}) {
111 static std::unique_ptr<SkFilterColorProgram> Make(const SkRuntimeEffect* effect);
DSkRuntimeEffect.cpp48 using ChildType = SkRuntimeEffect::ChildType;
109 SkRuntimeEffect::Uniform* v) { in init_uniform_type()
110 using Type = SkRuntimeEffect::Uniform::Type; in init_uniform_type()
143 static bool verify_child_effects(const std::vector<SkRuntimeEffect::Child>& reflected, in verify_child_effects()
144 SkSpan<SkRuntimeEffect::ChildPtr> effectPtrs) { in verify_child_effects()
161 const SkRuntimeEffect* effect, in read_child_effects()
162 SkTArray<SkRuntimeEffect::ChildPtr>* children) { in read_child_effects()
187 const std::vector<SkRuntimeEffect::ChildPtr>& children) { in write_child_effects()
217 SkRuntimeEffect::Result SkRuntimeEffect::MakeFromSource(SkString sksl, in MakeFromSource()
239 SkRuntimeEffect::Result SkRuntimeEffect::MakeFromDSL(std::unique_ptr<SkSL::Program> program, in MakeFromDSL()
[all …]
/third_party/skia/tests/
DSkRuntimeEffectTest.cpp34 auto [effect, errorText] = SkRuntimeEffect::MakeForShader(SkString(src)); in test_invalid_effect()
77 auto [effect, errorText] = SkRuntimeEffect::MakeForColorFilter(SkString(R"( in DEF_TEST()
96 SkRuntimeEffect::Options opt = SkRuntimeEffectPriv::ES3Options(); in DEF_TEST()
97 auto [effect, errorText] = SkRuntimeEffect::MakeForShader(SkString(sksl), opt); in DEF_TEST()
108 auto [effect, errorText] = SkRuntimeEffect::MakeForColorFilter(SkString(sksl)); in DEF_TEST()
113 auto [effect, errorText] = SkRuntimeEffect::MakeForColorFilter(SkString(sksl)); in DEF_TEST()
159 auto [effect, errorText] = SkRuntimeEffect::MakeForBlender(SkString(sksl)); in DEF_TEST()
164 auto [effect, errorText] = SkRuntimeEffect::MakeForBlender(SkString(sksl)); in DEF_TEST()
214 auto test_valid = [r](const char* sksl, SkRuntimeEffect::Options options = {}) { in DEF_TEST()
215 auto [effect, errorText] = SkRuntimeEffect::MakeForShader(SkString(sksl), options); in DEF_TEST()
[all …]
DSkSLES2ConformanceTest.cpp39 SkRuntimeEffect::Options options{}; in test_expect_fail()
47 SkRuntimeEffect::Result result = SkRuntimeEffect::MakeForShader(shaderString, options); in test_expect_fail()
56 SkRuntimeEffect::Options options{}; in test_expect_pass()
64 SkRuntimeEffect::Result result = SkRuntimeEffect::MakeForShader(shaderString, options); in test_expect_pass()
/third_party/skia/tools/viewer/
DSkSLSlide.cpp99 auto [effect, errorText] = SkRuntimeEffect::MakeForShader(sksl); in rebuild()
171 case SkRuntimeEffect::Uniform::Type::kFloat: in draw()
172 case SkRuntimeEffect::Uniform::Type::kFloat2: in draw()
173 case SkRuntimeEffect::Uniform::Type::kFloat3: in draw()
174 case SkRuntimeEffect::Uniform::Type::kFloat4: { in draw()
175 int rows = ((int)v.type - (int)SkRuntimeEffect::Uniform::Type::kFloat) + 1; in draw()
186 case SkRuntimeEffect::Uniform::Type::kFloat2x2: in draw()
187 case SkRuntimeEffect::Uniform::Type::kFloat3x3: in draw()
188 case SkRuntimeEffect::Uniform::Type::kFloat4x4: { in draw()
189 int rows = ((int)v.type - (int)SkRuntimeEffect::Uniform::Type::kFloat2x2) + 2; in draw()
[all …]
/third_party/skia/include/effects/
DSkRuntimeEffect.h48 class SK_API SkRuntimeEffect : public SkRefCnt {
101 friend class SkRuntimeEffect;
119 sk_sp<SkRuntimeEffect> effect;
227 ~SkRuntimeEffect() override;
238 SkRuntimeEffect(std::unique_ptr<SkSL::Program> baseProgram,
345 const SkRuntimeEffect::Uniform* fVar; // nullptr if the variable was not found
362 fOwner->fChildren[(size_t)fChild->index] = SkRuntimeEffect::ChildPtr{};
368 const SkRuntimeEffect::Child* fChild; // nullptr if the child was not found
371 const SkRuntimeEffect* effect() const { return fEffect.get(); } in effect()
375 const SkRuntimeEffect::Child* child = fEffect->findChild(name); in child()
[all …]
/third_party/skia/fuzz/oss_fuzz/
DFuzzSkRuntimeEffect.cpp32 static bool FuzzSkRuntimeEffect_Once(sk_sp<SkData> bytes, const SkRuntimeEffect::Options& options) { in FuzzSkRuntimeEffect_Once()
39 SkRuntimeEffect::Result result = SkRuntimeEffect::MakeForShader(shaderText, options); in FuzzSkRuntimeEffect_Once()
40 SkRuntimeEffect* effect = result.effect.get(); in FuzzSkRuntimeEffect_Once()
66 SkRuntimeEffect::Options options; in FuzzSkRuntimeEffect()
/third_party/skia/src/gpu/effects/
DGrSkSLFP.h23 class SkRuntimeEffect; variable
33 static constexpr SkRuntimeEffect::Uniform::Type value = SkRuntimeEffect::Uniform::Type::E; \
36 static constexpr SkRuntimeEffect::Uniform::Type value = SkRuntimeEffect::Uniform::Type::E; \
103 sk_sp<SkRuntimeEffect> effect,
139 static std::unique_ptr<GrSkSLFP> Make(sk_sp<SkRuntimeEffect> effect, in Make()
168 GrSkSLFP(sk_sp<SkRuntimeEffect> effect, const char* name, OptFlags optFlags);
185 static size_t UniformPayloadSize(const SkRuntimeEffect* effect) { in UniformPayloadSize()
292 using child_iterator = std::vector<SkRuntimeEffect::Child>::const_iterator;
293 using uniform_iterator = std::vector<SkRuntimeEffect::Uniform>::const_iterator;
403 sk_sp<SkRuntimeEffect> fEffect;
/third_party/skia/src/sksl/dsl/
DDSLRuntimeEffects.cpp30 sk_sp<SkRuntimeEffect> EndRuntimeShader(SkRuntimeEffect::Options options) { in EndRuntimeShader()
32 SkRuntimeEffect::Result result; in EndRuntimeShader()
34 result = SkRuntimeEffect::MakeForShader(std::move(program), options); in EndRuntimeShader()
/third_party/skia/modules/skottie/src/effects/
DBlackAndWhiteEffect.cpp37 static sk_sp<SkRuntimeEffect> make_effect() { in make_effect()
65 static const SkRuntimeEffect* effect = in make_effect()
66 SkRuntimeEffect::MakeForColorFilter(SkString(BLACK_AND_WHITE_EFFECT)).effect.release(); in make_effect()
121 const sk_sp<SkRuntimeEffect> fEffect;
DFractalNoiseEffect.cpp196 sk_sp<SkRuntimeEffect> make_noise_effect(unsigned loops, const char* filter, const char* fractal) { in make_noise_effect()
197 auto result = SkRuntimeEffect::MakeForShader( in make_noise_effect()
208 sk_sp<SkRuntimeEffect> noise_effect() { in noise_effect()
225 static const SkRuntimeEffect* effect = in noise_effect()
251 sk_sp<SkRuntimeEffect> getEffect() const { in getEffect()
264 sk_sp<SkRuntimeEffect> getEffect() const { in getEffect()
278 sk_sp<SkRuntimeEffect> getEffect() const { in getEffect()
DSphereEffect.cpp129 static sk_sp<SkRuntimeEffect> sphere_fancylight_effect() { in sphere_fancylight_effect()
130 static const SkRuntimeEffect* effect = in sphere_fancylight_effect()
131 SkRuntimeEffect::MakeForShader(SkStringPrintf(gSphereSkSL, gFancyLightSkSL), {}) in sphere_fancylight_effect()
135 SkRuntimeEffect::MakeForShader(SkStringPrintf(gSphereSkSL, gFancyLightSkSL), {}) in sphere_fancylight_effect()
143 static sk_sp<SkRuntimeEffect> sphere_basiclight_effect() { in sphere_basiclight_effect()
144 static const SkRuntimeEffect* effect = in sphere_basiclight_effect()
145 SkRuntimeEffect::MakeForShader(SkStringPrintf(gSphereSkSL, gBasicLightSkSL), {}) in sphere_basiclight_effect()
DThresholdEffect.cpp36 static sk_sp<SkRuntimeEffect> threshold_effect() { in threshold_effect()
37 static const SkRuntimeEffect* effect = in threshold_effect()
38 SkRuntimeEffect::MakeForColorFilter(SkString(gThresholdSkSL), {}).effect.release(); in threshold_effect()
DBrightnessContrastEffect.cpp139 , fBrightnessEffect(SkRuntimeEffect::MakeForColorFilter(SkString(BRIGHTNESS_EFFECT)).effect) in BrightnessContrastAdapter()
140 , fContrastEffect(SkRuntimeEffect::MakeForColorFilter(SkString(CONTRAST_EFFECT)).effect) { in BrightnessContrastAdapter()
229 const sk_sp<SkRuntimeEffect> fBrightnessEffect,
/third_party/skia/src/gpu/gradients/
DGrGradientShader.cpp70 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForShader, R"( in make_single_interval_colorizer()
90 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForShader, R"( in make_dual_interval_colorizer()
142 static sk_sp<SkRuntimeEffect> effects[kMaxUnrolledIntervalCount]; in make_unrolled_colorizer()
229 auto result = SkRuntimeEffect::MakeForShader(std::move(sksl)); in make_unrolled_colorizer()
257 sk_sp<SkRuntimeEffect> effect; in make_looping_colorizer()
320 auto result = SkRuntimeEffect::MakeForShader(std::move(sksl), in make_looping_colorizer()
542 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForShader, R"( in make_clamped_gradient()
605 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForShader, R"( in make_tiled_gradient()
782 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForShader, R"( in MakeLinear()
795 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForShader, R"( in MakeRadial()
[all …]
/third_party/skia/src/effects/imagefilters/
DSkRuntimeImageFilter.cpp26 SkRuntimeImageFilter(sk_sp<SkRuntimeEffect> effect, in SkRuntimeImageFilter()
44 sk_sp<SkRuntimeEffect> fEffect;
52 sk_sp<SkImageFilter> SkMakeRuntimeImageFilter(sk_sp<SkRuntimeEffect> effect, in SkMakeRuntimeImageFilter()
78 auto effect = SkMakeCachedRuntimeEffect(SkRuntimeEffect::MakeForShader, std::move(sksl)); in CreateProc()
DSkRuntimeImageFilter.h16 class SkRuntimeEffect; variable
18 SK_API sk_sp<SkImageFilter> SkMakeRuntimeImageFilter(sk_sp<SkRuntimeEffect> effect,
/third_party/skia/bench/
DColorFilterBench.cpp205 static sk_sp<SkRuntimeEffect> gEffect = in __anon9607f1bd0e02()
206 SkRuntimeEffect::MakeForColorFilter(SkString(RuntimeNone_GPU_SRC)).effect; in __anon9607f1bd0e02()
210 static sk_sp<SkRuntimeEffect> gEffect = in __anon9607f1bd0f02()
211 SkRuntimeEffect::MakeForColorFilter(SkString(RuntimeColorMatrix_GPU_SRC)).effect; in __anon9607f1bd0f02()
/third_party/skia/include/sksl/
DDSLRuntimeEffects.h24 sk_sp<SkRuntimeEffect> EndRuntimeShader(SkRuntimeEffect::Options options = {});
/third_party/skia/src/effects/
DSkLumaColorFilter.cpp19 sk_sp<SkRuntimeEffect> effect = SkMakeCachedRuntimeEffect(SkRuntimeEffect::MakeForColorFilter, in Make()
DSkOverdrawColorFilter.cpp16 sk_sp<SkRuntimeEffect> effect = SkMakeCachedRuntimeEffect( in MakeWithSkColors()
17 SkRuntimeEffect::MakeForColorFilter, in MakeWithSkColors()
DSkHighContrastFilter.cpp46 sk_sp<SkRuntimeEffect> effect = SkMakeCachedRuntimeEffect(SkRuntimeEffect::MakeForColorFilter, in Make()
/third_party/skia/src/gpu/
DGrFragmentProcessor.cpp192 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForColorFilter, R"( in MakeColor()
214 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForColorFilter, R"( in ApplyPaintAlpha()
237 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForColorFilter, R"( in ClampOutput()
321 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForColorFilter, R"( in OverrideInput()
343 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForColorFilter, R"( in DisableCoverageAsAlpha()
355 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForBlender, R"( in UseDestColorAsInput()
463 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForColorFilter, R"( in ColorMatrix()
607 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForShader, CLIP_EDGE_SKSL R"( in Rect()
655 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForShader, CLIP_EDGE_SKSL R"( in Circle()
715 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForShader, CLIP_EDGE_SKSL R"( in Ellipse()
/third_party/skia/gm/
Druntimefunctions.cpp42 sk_sp<SkRuntimeEffect> gEffect = in onDraw()
43 SkRuntimeEffect::MakeForShader(SkString(RUNTIME_FUNCTIONS_SRC)).effect; in onDraw()
Druntimeshader.cpp35 ? SkRuntimeEffect::MakeForColorFilter(fSkSL) in onOnceBeforeDraw()
36 : SkRuntimeEffect::MakeForShader(fSkSL); in onOnceBeforeDraw()
59 sk_sp<SkRuntimeEffect> fEffect;
413 SkRuntimeEffect::ChildPtr children[] = {fIdentityCube->makeShader(sampling, normalize)}; in onDraw()
640 SkRuntimeShaderBuilder builder(SkRuntimeEffect::MakeForShader(SkString(scale)).effect);
657 auto effect = SkRuntimeEffect::MakeForShader(SkString(kSrc)).effect; in normal_map_shader()
681 auto effect = SkRuntimeEffect::MakeForShader(SkString(kSrc)).effect; in lit_shader()

123