Home
last modified time | relevance | path

Searched refs:fEffect (Results 1 – 24 of 24) sorted by relevance

/third_party/skia/src/gpu/effects/
DGrSkSLFP.cpp28 const SkSL::Program& program = *fp.fEffect->fBaseProgram; in emitCode()
174 if (fp.fEffect->allowBlender()) { in emitCode()
193 if (fp.fEffect->samplesOutsideMain()) { in emitCode()
233 for (const auto& v : outer.fEffect->uniforms()) { in onSetData()
298 , fEffect(std::move(effect)) in GrSkSLFP()
300 , fUniformSize(SkToU32(fEffect->uniformSize())) { in GrSkSLFP()
301 memset(this->uniformFlags(), 0, fEffect->uniforms().size() * sizeof(UniformFlags)); in GrSkSLFP()
302 if (fEffect->usesSampleCoords()) { in GrSkSLFP()
305 if (fEffect->allowBlender()) { in GrSkSLFP()
312 , fEffect(other.fEffect) in GrSkSLFP()
[all …]
DGrSkSLFP.h403 sk_sp<SkRuntimeEffect> fEffect; variable
/third_party/skia/gm/
Dparticles.cpp54 fEffect = sk_make_sp<SkParticleEffect>(effectParams); in onOnceBeforeDraw()
56 SkAssertResult(fEffect->setUniform(val.fName, val.fData.data(), val.fData.size())); in onOnceBeforeDraw()
59 fEffect->start(/*now=*/0.0, /*looping=*/true); in onOnceBeforeDraw()
63 fEffect->update(/*now=*/std::min(time, fStartTime)); in onOnceBeforeDraw()
68 if (fEffect) { in onAnimate()
69 fEffect->update(fStartTime + (nanos * 1E-9)); in onAnimate()
77 fEffect->draw(canvas); in onDraw()
86 sk_sp<SkParticleEffect> fEffect; member in ParticlesGM
Druntimeshader.cpp40 fEffect = std::move(effect); in onOnceBeforeDraw()
59 sk_sp<SkRuntimeEffect> fEffect; member in RuntimeShaderGM
73 SkRuntimeShaderBuilder builder(fEffect); in onDraw()
160 SkRuntimeShaderBuilder builder(fEffect); in onDraw()
208 SkRuntimeShaderBuilder builder(fEffect); in onDraw()
252 SkRuntimeShaderBuilder builder(fEffect); in onDraw()
308 SkRuntimeShaderBuilder builder(fEffect); in onDraw()
414 paint.setColorFilter(fEffect->makeColorFilter( in onDraw()
420 paint.setColorFilter(fEffect->makeColorFilter( in onDraw()
444 SkRuntimeShaderBuilder builder(fEffect); in onDraw()
[all …]
/third_party/skia/tools/viewer/
DSkSLSlide.cpp77 fEffect.reset(); in unload()
109 size_t oldSize = fEffect ? fEffect->uniformSize() : 0; in rebuild()
116 fEffect = effect; in rebuild()
134 if (fCodeIsDirty || !fEffect) { in draw()
138 if (!fEffect) { in draw()
156 for (const auto& v : fEffect->uniforms()) { in draw()
220 for (const auto& c : fEffect->children()) { in draw()
248 auto inputs = SkData::MakeWithoutCopy(fInputs.get(), fEffect->uniformSize()); in draw()
249 auto shader = fEffect->makeShader(std::move(inputs), fChildren.data(), fChildren.count(), in draw()
DParticlesSlide.cpp315 SkParticleEffect* effect = fRunning[i].fEffect.get(); in draw()
393 effect.fEffect->draw(canvas); in draw()
402 effect.fEffect->update(fAnimationTime); in animate()
DParticlesSlide.h52 sk_sp<SkParticleEffect> fEffect; member
DSkSLSlide.h39 sk_sp<SkRuntimeEffect> fEffect; variable
/third_party/flutter/skia/modules/skottie/src/effects/
DLevelsEffect.cpp39 : fEffect(sksg::ExternalColorFilter::Make(std::move(child))) { in LevelsEffectAdapter()
40 SkASSERT(fEffect); in LevelsEffectAdapter()
54 const sk_sp<sksg::ExternalColorFilter>& root() const { return fEffect; } in root()
68 fEffect->setColorFilter(nullptr); in apply()
124 fEffect->setColorFilter(SkTableColorFilter::MakeARGB( in apply()
132 sk_sp<sksg::ExternalColorFilter> fEffect; member in skottie::internal::__anonbce709160111::LevelsEffectAdapter
/third_party/skia/modules/skottie/src/effects/
DBlackAndWhiteEffect.cpp79 , fEffect(make_effect()) in BlackAndWhiteAdapter()
81 SkASSERT(fEffect); in BlackAndWhiteAdapter()
118 fEffect->makeColorFilter(SkData::MakeWithCopy(&coeffs, sizeof(coeffs)))); in onSync()
121 const sk_sp<SkRuntimeEffect> fEffect; member in skottie::internal::__anon6b77ee270111::BlackAndWhiteAdapter
DSkSLEffect.cpp84 fEffect = std::move(result.effect); in SkSLEffectAdapter()
106 if (!fEffect) { in buildEffectShader()
110 SkRuntimeShaderBuilder builder = SkRuntimeShaderBuilder(fEffect); in buildEffectShader()
114 auto metadata = fEffect->findUniform(name.c_str()); in buildEffectShader()
125 sk_sp<SkRuntimeEffect> fEffect; member in skottie::internal::__anon6e0da2930111::SkSLEffectAdapter
/third_party/skia/src/core/
DSkRuntimeEffect.cpp826 : fEffect(std::move(effect)) in SkRuntimeColorFilter()
835 get_xformed_uniforms(fEffect.get(), fUniforms, colorInfo.colorSpace()); in asFragmentProcessor()
839 return make_effect_fp(fEffect, in asFragmentProcessor()
857 get_xformed_uniforms(fEffect.get(), fUniforms, colorInfo.colorSpace()); in onProgram()
881 std::vector<skvm::Val> uniform = make_skvm_uniforms(p, uniforms, fEffect->uniformSize(), in onProgram()
887 return SkSL::ProgramToSkVM(*fEffect->fBaseProgram, fEffect->fMain, p, /*debugInfo=*/nullptr, in onProgram()
894 const SkFilterColorProgram* program = fEffect->getFilterColorProgram(); in onFilterColor4f()
902 sk_sp<SkData> inputs = get_xformed_uniforms(fEffect.get(), fUniforms, dstCS); in onFilterColor4f()
921 return fEffect->getFilterColorProgram() && in onIsAlphaUnchanged()
922 fEffect->getFilterColorProgram()->isAlphaUnchanged(); in onIsAlphaUnchanged()
[all …]
/third_party/skia/tests/
DRefCntTest.cpp121 sk_sp<Effect> fEffect; member in Paint
123 const sk_sp<Effect>& get() const { return fEffect; } in get()
126 fEffect = std::move(value); in set()
154 REPORTER_ASSERT(reporter, paint.fEffect.get() == nullptr); in DEF_TEST()
160 REPORTER_ASSERT(reporter, paint.fEffect.get()->fRefCnt == 1); in DEF_TEST()
193 REPORTER_ASSERT(reporter, paint.fEffect.get()->fRefCnt == 2); in DEF_TEST()
198 REPORTER_ASSERT(reporter, paint.fEffect.get()->fRefCnt == 3); in DEF_TEST()
DGrClipStackTest.cpp1804 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClippedOut, in DEF_TEST()
1809 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kUnclipped, in DEF_TEST()
1816 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClippedOut, in DEF_TEST()
1827 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kUnclipped, in DEF_TEST()
1832 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClippedOut, in DEF_TEST()
1841 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClipped && !result.fIsRRect, in DEF_TEST()
1849 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClipped && in DEF_TEST()
1861 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClipped && in DEF_TEST()
1917 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClipped && !result.fIsRRect, in DEF_TEST()
/third_party/flutter/skia/tests/
DRefCntTest.cpp121 sk_sp<Effect> fEffect; member in Paint
123 const sk_sp<Effect>& get() const { return fEffect; } in get()
126 fEffect = std::move(value); in set()
154 REPORTER_ASSERT(reporter, paint.fEffect.get() == nullptr); in DEF_TEST()
160 REPORTER_ASSERT(reporter, paint.fEffect.get()->fRefCnt == 1); in DEF_TEST()
193 REPORTER_ASSERT(reporter, paint.fEffect.get()->fRefCnt == 2); in DEF_TEST()
198 REPORTER_ASSERT(reporter, paint.fEffect.get()->fRefCnt == 3); in DEF_TEST()
/third_party/skia/src/effects/imagefilters/
DSkRuntimeImageFilter.cpp30 , fEffect(std::move(effect)) in SkRuntimeImageFilter()
44 sk_sp<SkRuntimeEffect> fEffect;
91 buffer.writeString(fEffect->source().c_str()); in flatten()
122 auto shader = fEffect->makeShader(fUniforms, &inputShader, 1, nullptr, false); in onFilterImage()
/third_party/skia/include/effects/
DSkRuntimeEffect.h371 const SkRuntimeEffect* effect() const { return fEffect.get(); } in effect()
373 BuilderUniform uniform(const char* name) { return { this, fEffect->findUniform(name) }; } in uniform()
375 const SkRuntimeEffect::Child* child = fEffect->findChild(name); in child()
382 : fEffect(std::move(effect)) in SkRuntimeEffectBuilder()
383 , fUniforms(SkData::MakeUninitialized(fEffect->uniformSize())) in SkRuntimeEffectBuilder()
384 , fChildren(fEffect->children().size()) {} in SkRuntimeEffectBuilder()
404 sk_sp<SkRuntimeEffect> fEffect; variable
/third_party/skia/src/gpu/
DGrClip.h35 Effect fEffect; member
40 PreClipResult(Effect effect) : fEffect(effect), fIsRRect(false) {} in PreClipResult()
43 : fEffect(Effect::kClipped) in PreClipResult()
/third_party/flutter/skia/tools/viewer/
DParticlesSlide.cpp306 bool remove = ImGui::Button("X") || !fRunning[i].fEffect->isAlive(); in draw()
309 fRunning[i].fEffect->getCount(), fRunning[i].fName.c_str()); in draw()
335 effect.fEffect->draw(canvas); in draw()
344 effect.fEffect->update(fAnimationTime); in animate()
DParticlesSlide.h51 sk_sp<SkParticleEffect> fEffect; member
/third_party/skia/samplecode/
DSample3D.cpp362 sk_sp<SkRuntimeEffect> fEffect; member in SampleBump3D
409 fEffect = effect; in onOnceBeforeDraw()
421 SkRuntimeShaderBuilder builder(fEffect); in drawContent()
/third_party/flutter/skia/gm/
Dtextbloblooper.cpp80 bool fEffect; member
147 if (settings[i].fEffect) { in setupLooper()
/third_party/skia/src/gpu/v1/
DSurfaceDrawContext.cpp511 switch(result.fEffect) { in attemptQuadOptimization()
538 SkASSERT(result.fEffect == GrClip::Effect::kClipped && result.fIsRRect); in attemptQuadOptimization()
1058 switch(result.fEffect) { in drawRRect()
/third_party/skia/src/gpu/text/
DGrTextBlob.cpp624 switch (auto result = clip->preApply(glyphBounds, GrAA::kNo); result.fEffect) { in calculate_clip()