/third_party/skia/tests/ |
D | SkRuntimeEffectTest.cpp | 34 auto [effect, errorText] = SkRuntimeEffect::MakeForShader(SkString(src)); in test_invalid_effect() 35 REPORTER_ASSERT(r, !effect); in test_invalid_effect() 77 auto [effect, errorText] = SkRuntimeEffect::MakeForColorFilter(SkString(R"( in DEF_TEST() 91 REPORTER_ASSERT(r, effect, "%s", errorText.c_str()); in DEF_TEST() 97 auto [effect, errorText] = SkRuntimeEffect::MakeForShader(SkString(sksl), opt); in DEF_TEST() 98 REPORTER_ASSERT(r, effect, "%s", errorText.c_str()); in DEF_TEST() 108 auto [effect, errorText] = SkRuntimeEffect::MakeForColorFilter(SkString(sksl)); in DEF_TEST() 109 REPORTER_ASSERT(r, effect, "%s", errorText.c_str()); in DEF_TEST() 113 auto [effect, errorText] = SkRuntimeEffect::MakeForColorFilter(SkString(sksl)); in DEF_TEST() 114 REPORTER_ASSERT(r, !effect); in DEF_TEST() [all …]
|
D | SkDSLRuntimeEffectTest.cpp | 43 sk_sp<SkRuntimeEffect> effect = EndRuntimeShader(options); in end() local 44 REPORTER_ASSERT(fReporter, effect ? expectSuccess : !expectSuccess); in end() 45 if (effect) { in end() 46 fBuilder.init(std::move(effect)); in end() 95 actual[3], fBuilder->effect()->source().c_str())); in test() 119 DSLTestEffect effect(r, surface); in test_RuntimeEffect_Shaders() local 123 effect.start(); in test_RuntimeEffect_Shaders() 128 effect.end(); in test_RuntimeEffect_Shaders() 129 effect.test(0xFF000000, 0xFF0000FF, 0xFF00FF00, 0xFF00FFFF); in test_RuntimeEffect_Shaders() 134 effect.start(); in test_RuntimeEffect_Shaders() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/windows/ |
D | SDL_windowshaptic.c | 285 SDL_SYS_HapticNewEffect(SDL_Haptic * haptic, struct haptic_effect *effect, in SDL_SYS_HapticNewEffect() argument 291 effect->hweffect = (struct haptic_hweffect *) in SDL_SYS_HapticNewEffect() 293 if (effect->hweffect == NULL) { in SDL_SYS_HapticNewEffect() 297 SDL_zerop(effect->hweffect); in SDL_SYS_HapticNewEffect() 300 result = SDL_XINPUT_HapticNewEffect(haptic, effect, base); in SDL_SYS_HapticNewEffect() 302 result = SDL_DINPUT_HapticNewEffect(haptic, effect, base); in SDL_SYS_HapticNewEffect() 305 SDL_free(effect->hweffect); in SDL_SYS_HapticNewEffect() 306 effect->hweffect = NULL; in SDL_SYS_HapticNewEffect() 316 struct haptic_effect *effect, in SDL_SYS_HapticUpdateEffect() argument 320 return SDL_XINPUT_HapticUpdateEffect(haptic, effect, data); in SDL_SYS_HapticUpdateEffect() [all …]
|
D | SDL_xinputhaptic.c | 270 SDL_XINPUT_HapticNewEffect(SDL_Haptic * haptic, struct haptic_effect *effect, SDL_HapticEffect * ba… in SDL_XINPUT_HapticNewEffect() argument 273 return SDL_XINPUT_HapticUpdateEffect(haptic, effect, base); in SDL_XINPUT_HapticNewEffect() 277 SDL_XINPUT_HapticUpdateEffect(SDL_Haptic * haptic, struct haptic_effect *effect, SDL_HapticEffect *… in SDL_XINPUT_HapticUpdateEffect() argument 279 XINPUT_VIBRATION *vib = &effect->hweffect->vibration; in SDL_XINPUT_HapticUpdateEffect() 292 SDL_XINPUT_HapticRunEffect(SDL_Haptic * haptic, struct haptic_effect *effect, Uint32 iterations) in SDL_XINPUT_HapticRunEffect() argument 294 XINPUT_VIBRATION *vib = &effect->hweffect->vibration; in SDL_XINPUT_HapticRunEffect() 295 … SDL_assert(effect->effect.type == SDL_HAPTIC_LEFTRIGHT); /* should catch this at higher level */ in SDL_XINPUT_HapticRunEffect() 297 … if (effect->effect.leftright.length == SDL_HAPTIC_INFINITY || iterations == SDL_HAPTIC_INFINITY) { in SDL_XINPUT_HapticRunEffect() 299 } else if ((!effect->effect.leftright.length) || (!iterations)) { in SDL_XINPUT_HapticRunEffect() 302 haptic->hwdata->stopTicks = SDL_GetTicks() + (effect->effect.leftright.length * iterations); in SDL_XINPUT_HapticRunEffect() [all …]
|
D | SDL_dinputhaptic.c | 561 SDL_SYS_SetDirection(DIEFFECT * effect, SDL_HapticDirection * dir, int naxes) in SDL_SYS_SetDirection() argument 567 effect->dwFlags |= DIEFF_SPHERICAL; /* Set as default. */ in SDL_SYS_SetDirection() 568 effect->rglDirection = NULL; in SDL_SYS_SetDirection() 578 effect->rglDirection = rglDir; in SDL_SYS_SetDirection() 582 effect->dwFlags |= DIEFF_POLAR; in SDL_SYS_SetDirection() 586 effect->dwFlags |= DIEFF_CARTESIAN; in SDL_SYS_SetDirection() 594 effect->dwFlags |= DIEFF_SPHERICAL; in SDL_SYS_SetDirection() 893 SDL_SYS_HapticFreeDIEFFECT(DIEFFECT * effect, int type) in SDL_SYS_HapticFreeDIEFFECT() argument 897 SDL_free(effect->lpEnvelope); in SDL_SYS_HapticFreeDIEFFECT() 898 effect->lpEnvelope = NULL; in SDL_SYS_HapticFreeDIEFFECT() [all …]
|
D | SDL_xinputhaptic_c.h | 35 extern int SDL_XINPUT_HapticNewEffect(SDL_Haptic * haptic, struct haptic_effect *effect, SDL_Haptic… 36 extern int SDL_XINPUT_HapticUpdateEffect(SDL_Haptic * haptic, struct haptic_effect *effect, SDL_Hap… 37 extern int SDL_XINPUT_HapticRunEffect(SDL_Haptic * haptic, struct haptic_effect *effect, Uint32 ite… 38 extern int SDL_XINPUT_HapticStopEffect(SDL_Haptic * haptic, struct haptic_effect *effect); 39 extern void SDL_XINPUT_HapticDestroyEffect(SDL_Haptic * haptic, struct haptic_effect *effect); 40 extern int SDL_XINPUT_HapticGetEffectStatus(SDL_Haptic * haptic, struct haptic_effect *effect);
|
D | SDL_dinputhaptic_c.h | 35 extern int SDL_DINPUT_HapticNewEffect(SDL_Haptic * haptic, struct haptic_effect *effect, SDL_Haptic… 36 extern int SDL_DINPUT_HapticUpdateEffect(SDL_Haptic * haptic, struct haptic_effect *effect, SDL_Hap… 37 extern int SDL_DINPUT_HapticRunEffect(SDL_Haptic * haptic, struct haptic_effect *effect, Uint32 ite… 38 extern int SDL_DINPUT_HapticStopEffect(SDL_Haptic * haptic, struct haptic_effect *effect); 39 extern void SDL_DINPUT_HapticDestroyEffect(SDL_Haptic * haptic, struct haptic_effect *effect); 40 extern int SDL_DINPUT_HapticGetEffectStatus(SDL_Haptic * haptic, struct haptic_effect *effect);
|
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/ |
D | SDL_haptic.c | 455 SDL_HapticEffectSupported(SDL_Haptic * haptic, SDL_HapticEffect * effect) in SDL_HapticEffectSupported() argument 461 if ((haptic->supported & effect->type) != 0) in SDL_HapticEffectSupported() 470 SDL_HapticNewEffect(SDL_Haptic * haptic, SDL_HapticEffect * effect) in SDL_HapticNewEffect() argument 480 if (SDL_HapticEffectSupported(haptic, effect) == SDL_FALSE) { in SDL_HapticNewEffect() 489 if (SDL_SYS_HapticNewEffect(haptic, &haptic->effects[i], effect) in SDL_HapticNewEffect() 494 SDL_memcpy(&haptic->effects[i].effect, effect, in SDL_HapticNewEffect() 507 ValidEffect(SDL_Haptic * haptic, int effect) in ValidEffect() argument 509 if ((effect < 0) || (effect >= haptic->neffects)) { in ValidEffect() 520 SDL_HapticUpdateEffect(SDL_Haptic * haptic, int effect, in SDL_HapticUpdateEffect() argument 523 if (!ValidHaptic(haptic) || !ValidEffect(haptic, effect)) { in SDL_HapticUpdateEffect() [all …]
|
D | SDL_syshaptic.h | 32 SDL_HapticEffect effect; /* The current event */ member 126 struct haptic_effect *effect, 136 struct haptic_effect *effect, 145 struct haptic_effect *effect, 154 struct haptic_effect *effect); 160 struct haptic_effect *effect); 169 struct haptic_effect *effect);
|
/third_party/skia/site/docs/user/modules/ |
D | particles.md | 140 "void effectSpawn(inout Effect effect) {", 141 " effect.lifetime = 2;", 144 "void effectUpdate(inout Effect effect) {", 145 " if (effect.age < 0.25 || effect.age > 0.75) { effect.rate = 0; }", 146 " else { effect.rate = 200; }", 156 " p.lifetime = (1 - effect.age) * effect.lifetime;", 179 "void effectSpawn(inout Effect effect) {", 180 " effect.lifetime = 2;", 181 " effect.rate = 200;", 243 " float s = effect.age * 2 - 1;", [all …]
|
/third_party/skia/tools/viewer/ |
D | ParticlesSlide.cpp | 218 LoadedEffect effect; in loadEffects() local 219 effect.fName = SkOSPath::Join(dirname, file.c_str()); in loadEffects() 220 effect.fParams.reset(new SkParticleEffectParams()); in loadEffects() 221 if (auto fileData = SkData::MakeFromFileName(effect.fName.c_str())) { in loadEffects() 224 effect.fParams->visitFields(&fromJson); in loadEffects() 225 effect.fParams->prepare(fResourceProvider.get()); in loadEffects() 226 fLoaded.push_back(effect); in loadEffects() 252 LoadedEffect effect; in draw() local 253 effect.fName = SkOSPath::Join(dirname.c_str(), "new.json"); in draw() 254 effect.fParams.reset(new SkParticleEffectParams()); in draw() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/darwin/ |
D | SDL_syshaptic.c | 78 struct FFEFFECT effect; /* Hardware effect. */ member 84 static void SDL_SYS_HapticFreeFFEFFECT(FFEFFECT * effect, int type); 715 SDL_SYS_SetDirection(FFEFFECT * effect, SDL_HapticDirection * dir, int naxes) in SDL_SYS_SetDirection() argument 721 effect->dwFlags |= FFEFF_SPHERICAL; /* Set as default. */ in SDL_SYS_SetDirection() 722 effect->rglDirection = NULL; in SDL_SYS_SetDirection() 732 effect->rglDirection = rglDir; in SDL_SYS_SetDirection() 736 effect->dwFlags |= FFEFF_POLAR; in SDL_SYS_SetDirection() 740 effect->dwFlags |= FFEFF_CARTESIAN; in SDL_SYS_SetDirection() 750 effect->dwFlags |= FFEFF_SPHERICAL; in SDL_SYS_SetDirection() 1058 SDL_SYS_HapticFreeFFEFFECT(FFEFFECT * effect, int type) in SDL_SYS_HapticFreeFFEFFECT() argument [all …]
|
/third_party/gstreamer/gstplugins_base/ext/gl/ |
D | gstgleffects.c | 160 effects->effect = (GstGLEffectProcessFunc) gst_gl_effects_identity; in gst_gl_effects_set_effect() 166 effects->effect = (GstGLEffectProcessFunc) gst_gl_effects_mirror; in gst_gl_effects_set_effect() 172 effects->effect = (GstGLEffectProcessFunc) gst_gl_effects_squeeze; in gst_gl_effects_set_effect() 178 effects->effect = (GstGLEffectProcessFunc) gst_gl_effects_stretch; in gst_gl_effects_set_effect() 184 effects->effect = (GstGLEffectProcessFunc) gst_gl_effects_tunnel; in gst_gl_effects_set_effect() 190 effects->effect = (GstGLEffectProcessFunc) gst_gl_effects_fisheye; in gst_gl_effects_set_effect() 196 effects->effect = (GstGLEffectProcessFunc) gst_gl_effects_twirl; in gst_gl_effects_set_effect() 202 effects->effect = (GstGLEffectProcessFunc) gst_gl_effects_bulge; in gst_gl_effects_set_effect() 208 effects->effect = (GstGLEffectProcessFunc) gst_gl_effects_square; in gst_gl_effects_set_effect() 214 effects->effect = (GstGLEffectProcessFunc) gst_gl_effects_heat; in gst_gl_effects_set_effect() [all …]
|
/third_party/flutter/skia/tools/viewer/ |
D | ParticlesSlide.cpp | 218 LoadedEffect effect; in loadEffects() local 219 effect.fName = SkOSPath::Join(dirname, file.c_str()); in loadEffects() 220 effect.fParams.reset(new SkParticleEffectParams()); in loadEffects() 221 if (auto fileData = SkData::MakeFromFileName(effect.fName.c_str())) { in loadEffects() 224 effect.fParams->visitFields(&fromJson); in loadEffects() 225 fLoaded.push_back(effect); in loadEffects() 251 LoadedEffect effect; in draw() local 252 effect.fName = SkOSPath::Join(dirname.c_str(), "new.json"); in draw() 253 effect.fParams.reset(new SkParticleEffectParams()); in draw() 254 fLoaded.push_back(effect); in draw() [all …]
|
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/java/com/mobileer/androidfxlab/ |
D | NativeInterface.kt | 36 fun addEffect(effect: Effect) { in addEffect() 37 Log.d("INTERFACE", String.format("Effect %s added", effect.name)) in addEffect() 40 effect in addEffect() 52 fun updateParamsAt(effect: Effect, index: Int) { in updateParamsAt() 58 effect.paramValues[0] in updateParamsAt() 63 effect in updateParamsAt() 64 ), index, effect.paramValues in updateParamsAt() 108 private fun convertEffectToId(effect: Effect): Int = 109 effectDescriptionMap[effect.name]?.id ?: -1
|
/third_party/skia/src/core/ |
D | SkPathEffectBase.h | 130 static inline SkPathEffectBase* as_PEB(SkPathEffect* effect) { in as_PEB() argument 131 return static_cast<SkPathEffectBase*>(effect); in as_PEB() 134 static inline const SkPathEffectBase* as_PEB(const SkPathEffect* effect) { in as_PEB() argument 135 return static_cast<const SkPathEffectBase*>(effect); in as_PEB() 138 static inline const SkPathEffectBase* as_PEB(const sk_sp<SkPathEffect>& effect) { in as_PEB() argument 139 return static_cast<SkPathEffectBase*>(effect.get()); in as_PEB() 142 static inline sk_sp<SkPathEffectBase> as_PEB_sp(sk_sp<SkPathEffect> effect) { in as_PEB_sp() argument 143 return sk_sp<SkPathEffectBase>(static_cast<SkPathEffectBase*>(effect.release())); in as_PEB_sp()
|
D | SkRuntimeEffect.cpp | 161 const SkRuntimeEffect* effect, in read_child_effects() argument 164 if (!buffer.validate(childCount == effect->children().size())) { in read_child_effects() 171 for (const auto& child : effect->children()) { in read_child_effects() 370 sk_sp<SkRuntimeEffect> effect(new SkRuntimeEffect(std::move(program), in MakeInternal() local 377 return Result{std::move(effect), SkString()}; in MakeInternal() 382 SkASSERT(!result.effect || result.effect->allowColorFilter()); in MakeForColorFilter() 388 SkASSERT(!result.effect || result.effect->allowShader()); in MakeForShader() 394 SkASSERT(!result.effect || result.effect->allowBlender()); in MakeForBlender() 401 SkASSERT(!result.effect || result.effect->allowColorFilter()); in MakeForColorFilter() 408 SkASSERT(!result.effect || result.effect->allowShader()); in MakeForShader() [all …]
|
/third_party/boost/libs/fusion/test/functional/ |
D | fused_procedure.cpp | 21 int effect; variable 25 effect = 1234567; t; \ 26 BOOST_TEST(effect == e); \ 36 return effect = 1+x-y; in operator ()() 42 return effect = 2+x-y; in operator ()() 48 return effect = 3+x-y; in operator ()() 54 return effect = 4+x-y; in operator ()()
|
D | make_fused_procedure.cpp | 23 int effect; variable 27 effect = 1234567; t; \ 28 BOOST_TEST(effect == e); \ 38 return effect = 1+x-y; in operator ()() 44 return effect = 2+x-y; in operator ()() 50 return effect = 3+x-y; in operator ()() 56 return effect = 4+x-y; in operator ()()
|
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/linux/ |
D | SDL_syshaptic.c | 82 struct ff_effect effect; /* The linux kernel effect structure. */ member 927 SDL_SYS_HapticNewEffect(SDL_Haptic * haptic, struct haptic_effect *effect, in SDL_SYS_HapticNewEffect() argument 933 effect->hweffect = (struct haptic_hweffect *) in SDL_SYS_HapticNewEffect() 935 if (effect->hweffect == NULL) { in SDL_SYS_HapticNewEffect() 940 linux_effect = &effect->hweffect->effect; in SDL_SYS_HapticNewEffect() 956 SDL_free(effect->hweffect); in SDL_SYS_HapticNewEffect() 957 effect->hweffect = NULL; in SDL_SYS_HapticNewEffect() 970 struct haptic_effect *effect, in SDL_SYS_HapticUpdateEffect() argument 979 linux_effect.id = effect->hweffect->effect.id; in SDL_SYS_HapticUpdateEffect() 988 SDL_memcpy(&effect->hweffect->effect, &linux_effect, in SDL_SYS_HapticUpdateEffect() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/dummy/ |
D | SDL_syshaptic.c | 107 struct haptic_effect *effect, SDL_HapticEffect * base) in SDL_SYS_HapticNewEffect() argument 115 struct haptic_effect *effect, in SDL_SYS_HapticUpdateEffect() argument 123 SDL_SYS_HapticRunEffect(SDL_Haptic * haptic, struct haptic_effect *effect, in SDL_SYS_HapticRunEffect() argument 131 SDL_SYS_HapticStopEffect(SDL_Haptic * haptic, struct haptic_effect *effect) in SDL_SYS_HapticStopEffect() argument 138 SDL_SYS_HapticDestroyEffect(SDL_Haptic * haptic, struct haptic_effect *effect) in SDL_SYS_HapticDestroyEffect() argument 147 struct haptic_effect *effect) in SDL_SYS_HapticGetEffectStatus() argument
|
/third_party/skia/src/gpu/gradients/ |
D | GrGradientShader.cpp | 70 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForShader, R"( in make_single_interval_colorizer() local 79 return GrSkSLFP::Make(effect, "SingleIntervalColorizer", /*inputFP=*/nullptr, in make_single_interval_colorizer() 90 static auto effect = SkMakeRuntimeEffect(SkRuntimeEffect::MakeForShader, R"( in make_dual_interval_colorizer() local 121 return GrSkSLFP::Make(effect, "DualIntervalColorizer", /*inputFP=*/nullptr, in make_dual_interval_colorizer() 230 SkASSERTF(result.effect, "%s", result.errorText.c_str()); in make_unrolled_colorizer() 231 effects[intervalCount - 1] = std::move(result.effect); in make_unrolled_colorizer() 257 sk_sp<SkRuntimeEffect> effect; in make_looping_colorizer() member 322 SkASSERTF(result.effect, "%s", result.errorText.c_str()); in make_looping_colorizer() 323 cacheEntry->effect = std::move(result.effect); in make_looping_colorizer() 326 return GrSkSLFP::Make(cacheEntry->effect, "LoopingBinaryColorizer", in make_looping_colorizer() [all …]
|
/third_party/skia/fuzz/oss_fuzz/ |
D | FuzzSkRuntimeEffect.cpp | 40 SkRuntimeEffect* effect = result.effect.get(); in FuzzSkRuntimeEffect_Once() local 42 if (!effect || effect->uniformSize() > kReservedBytes) { // if there is not enough uniform bytes in FuzzSkRuntimeEffect_Once() 46 SkData::MakeSubset(bytes.get(), bytes->size() - kReservedBytes, effect->uniformSize()); in FuzzSkRuntimeEffect_Once() 47 auto shader = effect->makeShader(uniformBytes, /*children=*/nullptr, /*childCount=*/0, in FuzzSkRuntimeEffect_Once()
|
/third_party/skia/src/effects/imagefilters/ |
D | SkRuntimeImageFilter.cpp | 26 SkRuntimeImageFilter(sk_sp<SkRuntimeEffect> effect, in SkRuntimeImageFilter() argument 30 , fEffect(std::move(effect)) in SkRuntimeImageFilter() 52 sk_sp<SkImageFilter> SkMakeRuntimeImageFilter(sk_sp<SkRuntimeEffect> effect, in SkMakeRuntimeImageFilter() argument 58 auto shader = effect->makeShader(uniforms, &child, 1, nullptr, false); in SkMakeRuntimeImageFilter() 65 new SkRuntimeImageFilter(std::move(effect), std::move(uniforms), std::move(input))); in SkMakeRuntimeImageFilter() 78 auto effect = SkMakeCachedRuntimeEffect(SkRuntimeEffect::MakeForShader, std::move(sksl)); in CreateProc() local 79 if (!buffer.validate(effect != nullptr)) { in CreateProc() 86 return SkMakeRuntimeImageFilter(std::move(effect), std::move(uniforms), common.getInput(0)); in CreateProc()
|
/third_party/skia/gm/ |
D | runtimecolorfilter.cpp | 92 auto [effect, err] = SkRuntimeEffect::MakeForColorFilter(SkString(src)); in __anonbef478180102() 93 if (!effect) { in __anonbef478180102() 96 SkASSERT(effect); in __anonbef478180102() 98 p.setColorFilter(effect->makeColorFilter(nullptr)); in __anonbef478180102() 143 auto [effect, err] = SkRuntimeEffect::MakeForColorFilter(SkString(gLumaSrc)); 144 if (!effect) { 147 SkASSERT(effect); 148 sk_sp<SkColorFilter> colorfilter = effect->makeColorFilter(nullptr);
|