Home
last modified time | relevance | path

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

/external/skia/src/gpu/ganesh/effects/
DGrSkSLFP.cpp32 const SkSL::Program& program = *fp.fEffect->fBaseProgram; in emitCode()
201 if (fp.fEffect->allowBlender()) { in emitCode()
220 if (fp.fEffect->samplesOutsideMain()) { in emitCode()
256 pdman.setRuntimeEffectUniforms(outer.fEffect->uniforms(), in onSetData()
290 if (fp->fEffect->usesColorTransform() && dstColorSpace) { in MakeWithData()
302 , fEffect(std::move(effect)) in GrSkSLFP()
304 , fUniformSize(SkToU32(fEffect->uniformSize())) { in GrSkSLFP()
306 if (fEffect->usesSampleCoords()) { in GrSkSLFP()
309 if (fEffect->allowBlender()) { in GrSkSLFP()
316 , fEffect(other.fEffect) in GrSkSLFP()
[all …]
DGrSkSLFP.h191 size_t uniformCount() const { return fEffect->uniforms().size(); } in uniformCount()
414 sk_sp<SkRuntimeEffect> fEffect; variable
/external/skia/src/core/
DSkRuntimeEffect.cpp1170 : fEffect(std::move(effect)) in SkRuntimeColorFilter()
1180 fEffect->uniforms(), in asFragmentProcessor()
1186 return make_effect_fp(fEffect, in asFragmentProcessor()
1203 fEffect->uniforms(), in addToKey()
1209 { fEffect, std::move(uniforms) }); in addToKey()
1211 add_children_to_key(fChildren, fEffect->children(), keyContext, builder, gatherer); in addToKey()
1219 if (!SkRuntimeEffectPriv::CanDraw(SkCapabilities::RasterBackend().get(), fEffect.get())) { in appendStages()
1224 if (const SkSL::RP::Program* program = fEffect->getRPProgram()) { in appendStages()
1225 sk_sp<const SkData> inputs = SkRuntimeEffectPriv::TransformUniforms(fEffect->uniforms(), in appendStages()
1230 RuntimeEffectRPCallbacks callbacks(rec, matrix, fChildren, fEffect->fSampleUsages); in appendStages()
[all …]
/external/skia/modules/skottie/src/effects/
DSkSLEffect.cpp79 fEffect = std::move(result.effect); in SkSLEffectBase()
105 auto uniformData = SkData::MakeUninitialized(fEffect->uniformSize()); in buildUniformData()
111 auto metadata = fEffect->findUniform(name.c_str()); in buildUniformData()
121 sk_sp<SkRuntimeEffect> fEffect; member in skottie::internal::__anon361251c80111::SkSLEffectBase
140 if (!fEffect) { in onSync()
144 fEffect->makeShader(buildUniformData(), {/* TODO: child support */}); in onSync()
164 if (!fEffect) { in onSync()
167 auto cf = fEffect->makeColorFilter(buildUniformData()); in onSync()
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::__anon876188fc0111::BlackAndWhiteAdapter
/external/skia/tools/viewer/
DSkSLSlide.cpp80 fEffect.reset(); in unload()
116 size_t oldSize = fEffect ? fEffect->uniformSize() : 0; in rebuild()
123 fEffect = effect; in rebuild()
145 if (fCodeIsDirty || !fEffect) { in draw()
149 if (!fEffect) { in draw()
175 for (const SkRuntimeEffect::Uniform& v : fEffect->uniforms()) { in draw()
241 for (const SkRuntimeEffect::Child& c : fEffect->children()) { in draw()
271 auto inputs = SkData::MakeWithoutCopy(fInputs.get(), fEffect->uniformSize()); in draw()
276 auto shader = fEffect->makeShader(std::move(inputs), fChildren.data(), fChildren.size()); in draw()
DSkSLSlide.h36 sk_sp<SkRuntimeEffect> fEffect; variable
D3DSlide.cpp359 sk_sp<SkRuntimeEffect> fEffect; member in Bump3DSlide
404 fEffect = effect; in load()
413 SkRuntimeShaderBuilder builder(fEffect); in drawFace()
/external/skia/include/effects/
DSkRuntimeEffect.h422 const SkRuntimeEffect* effect() const { return fEffect.get(); } in effect()
424 BuilderUniform uniform(std::string_view name) { return { this, fEffect->findUniform(name) }; } in uniform()
425 BuilderChild child(std::string_view name) { return { this, fEffect->findChild(name) }; } in child()
435 : fEffect(std::move(effect)) in SkRuntimeEffectBuilder()
436 , fUniforms(SkData::MakeZeroInitialized(fEffect->uniformSize())) in SkRuntimeEffectBuilder()
437 , fChildren(fEffect->children().size()) {} in SkRuntimeEffectBuilder()
439 : fEffect(std::move(effect)) in SkRuntimeEffectBuilder()
441 , fChildren(fEffect->children().size()) {} in SkRuntimeEffectBuilder()
457 sk_sp<SkRuntimeEffect> fEffect; variable
/external/skia/tests/
DRefCntTest.cpp123 sk_sp<Effect> fEffect; member in Paint
125 const sk_sp<Effect>& get() const { return fEffect; } in get()
128 fEffect = std::move(value); in set()
156 REPORTER_ASSERT(reporter, paint.fEffect.get() == nullptr); in DEF_TEST()
162 REPORTER_ASSERT(reporter, paint.fEffect.get()->fRefCnt == 1); in DEF_TEST()
195 REPORTER_ASSERT(reporter, paint.fEffect.get()->fRefCnt == 2); in DEF_TEST()
200 REPORTER_ASSERT(reporter, paint.fEffect.get()->fRefCnt == 3); in DEF_TEST()
DGrClipStackTest.cpp1843 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClippedOut, in DEF_TEST()
1848 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kUnclipped, in DEF_TEST()
1855 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClippedOut, in DEF_TEST()
1866 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kUnclipped, in DEF_TEST()
1871 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClippedOut, in DEF_TEST()
1880 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClipped && !result.fIsRRect, in DEF_TEST()
1888 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClipped && in DEF_TEST()
1900 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClipped && in DEF_TEST()
1957 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClipped && !result.fIsRRect, in DEF_TEST()
/external/skia/gm/
Druntimeshader.cpp43 fEffect = std::move(effect); in onOnceBeforeDraw()
62 sk_sp<SkRuntimeEffect> fEffect; member in RuntimeShaderGM
76 SkRuntimeShaderBuilder builder(fEffect); in onDraw()
163 SkRuntimeShaderBuilder builder(fEffect); in onDraw()
211 SkRuntimeShaderBuilder builder(fEffect); in onDraw()
255 SkRuntimeShaderBuilder builder(fEffect); in onDraw()
311 SkRuntimeShaderBuilder builder(fEffect); in onDraw()
394 SkRuntimeColorFilterBuilder builder(fEffect); in onDraw()
447 SkRuntimeShaderBuilder builder(fEffect); in onDraw()
503 SkRuntimeShaderBuilder builder(fEffect); in drawSuperRRect()
[all …]
/external/skia/experimental/webgpu-bazel/src/
Dbindings.cpp115 fEffect = effect; in init()
179 sk_sp<SkShader> shader = fEffect->makeShader(std::move(uniformData), /*children=*/{}); in drawRuntimeEffect()
189 sk_sp<SkRuntimeEffect> fEffect; member in Demo
/external/skia/src/gpu/ganesh/
DGrClip.h35 Effect fEffect; member
40 PreClipResult(Effect effect) : fEffect(effect), fIsRRect(false) {} in PreClipResult()
43 : fEffect(Effect::kClipped) in PreClipResult()
DSurfaceDrawContext.cpp444 switch(result.fEffect) { in attemptQuadOptimization()
474 SkASSERT(result.fEffect == GrClip::Effect::kClipped && result.fIsRRect); in attemptQuadOptimization()
1011 switch(result.fEffect) { in drawRRect()
/external/skia/src/gpu/graphite/
DKeyHelpers.cpp691 : fEffect(std::move(effect)) {} in ShaderData()
695 : fEffect(std::move(effect)) in ShaderData()
705 return fEffect == rhs.fEffect && skdata_matches(fUniforms.get(), rhs.fUniforms.get()); in operator ==()
728 int codeSnippetID = dict->findOrCreateRuntimeEffectSnippet(shaderData.fEffect.get()); in BeginBlock()
730 keyContext.rtEffectDict()->set(codeSnippetID, shaderData.fEffect); in BeginBlock()
739 gather_runtime_effect_uniforms(shaderData.fEffect->uniforms(), in BeginBlock()
DFactoryFunctions.cpp634 : fEffect(std::move(effect)) { in PrecompileRTEffect()
657 SkSpan<const SkRuntimeEffect::Child> childInfo = fEffect->children(); in addToKey()
659 RuntimeEffectBlock::BeginBlock(keyContext, builder, /* gatherer= */ nullptr, { fEffect }); in addToKey()
675 sk_sp<SkRuntimeEffect> fEffect; member in skgpu::graphite::PrecompileRTEffect
DKeyHelpers.h328 sk_sp<const SkRuntimeEffect> fEffect; member
/external/skia/src/text/gpu/
DSubRunContainer.cpp1087 switch (auto result = clip->preApply(glyphBounds, GrAA::kNo); result.fEffect) { in calculate_clip()