Home
last modified time | relevance | path

Searched refs:fShader (Results 1 – 25 of 85) sorted by relevance

1234

/external/skia/modules/sksg/src/
DSkSGRenderEffect.cpp24 , fShader(std::move(sh)) { in MaskShaderEffect()
29 .modulateMaskShader(fShader, canvas->getTotalMatrix()); in onRender()
41 , fShader(std::move(shader)) { in ShaderEffect()
42 if (fShader) { in ShaderEffect()
43 this->observeInval(fShader); in ShaderEffect()
48 if (fShader) { in ~ShaderEffect()
49 this->unobserveInval(fShader); in ~ShaderEffect()
54 if (fShader) { in setShader()
55 this->unobserveInval(fShader); in setShader()
58 fShader = std::move(sh); in setShader()
[all …]
DSkSGPaint.cpp61 : fShader(std::move(sh)) { in ShaderPaint()
62 this->observeInval(fShader); in ShaderPaint()
66 this->unobserveInval(fShader); in ~ShaderPaint()
72 return fShader->revalidate(ic, ctm); in onRevalidate()
76 paint->setShader(fShader->getShader()); in onApplyToPaint()
DSkSGRenderNode.cpp98 if (fShader) { in modulatePaint()
99 paint->setShader(LocalShader(fShader, fShaderCTM, ctm)); in modulatePaint()
147 if (!fCtx.fShader) { in modulateShader()
148 fCtx.fShader = std::move(sh); in modulateShader()
/external/skqp/src/shaders/
DSkColorFilterShader.cpp21 : fShader(std::move(shader)) in SkColorFilterShader()
24 SkASSERT(fShader); in SkColorFilterShader()
38 buffer.writeFlattenable(fShader.get()); in flatten()
43 if (!as_SB(fShader)->appendStages(rec)) { in onAppendStages()
46 fFilter->appendStages(rec.fPipeline, rec.fDstCS, rec.fAlloc, fShader->isOpaque()); in onAppendStages()
51 return xformer->apply(fShader.get())->makeWithColorFilter(xformer->apply(fFilter.get())); in onMakeColorSpace()
59 auto fp1 = as_SB(fShader)->asFragmentProcessor(args); in asFragmentProcessor()
/external/skia/src/shaders/
DSkColorFilterShader.cpp25 : fShader(std::move(shader)) in SkColorFilterShader()
29 SkASSERT(fShader); in SkColorFilterShader()
43 return fShader->isOpaque() && fAlpha == 1.0f && as_CFB(fFilter)->isAlphaUnchanged(); in isOpaque()
47 buffer.writeFlattenable(fShader.get()); in flatten()
53 if (!as_SB(fShader)->appendStages(rec)) { in onAppendStages()
59 if (!fFilter->appendStages(rec, fShader->isOpaque())) { in onAppendStages()
71 skvm::Color c = as_SB(fShader)->program(p, device,local, paint, in onProgram()
96 auto shaderFP = as_SB(fShader)->asFragmentProcessor(args); in asFragmentProcessor()
/external/skia/src/shaders/gradients/
DSk4fGradientBase.cpp32 : fShader(shader) in IntervalIterator()
42 if (!fShader.fOrigPos) { in iterate()
47 const int end = fBegin + fAdvance * (fShader.fColorCount - 1); in iterate()
53 SkASSERT(curr >= 0 && curr < fShader.fColorCount); in iterate()
55 const SkScalar currPos = fShader.fOrigPos[curr]; in iterate()
73 const SkScalar dt = fAdvance * SK_Scalar1 / (fShader.fColorCount - 1); in iterateImplicitPos()
74 const int end = fBegin + fAdvance * (fShader.fColorCount - 2); in iterateImplicitPos()
80 SkASSERT(curr >= 0 && curr < fShader.fColorCount); in iterateImplicitPos()
92 const SkGradientShaderBase& fShader; member in __anon2ae2a4810111::IntervalIterator
/external/skqp/src/shaders/gradients/
DSk4fGradientBase.cpp32 : fShader(shader) in IntervalIterator()
42 if (!fShader.fOrigPos) { in iterate()
47 const int end = fBegin + fAdvance * (fShader.fColorCount - 1); in iterate()
53 SkASSERT(curr >= 0 && curr < fShader.fColorCount); in iterate()
55 const SkScalar currPos = fShader.fOrigPos[curr]; in iterate()
73 const SkScalar dt = fAdvance * SK_Scalar1 / (fShader.fColorCount - 1); in iterateImplicitPos()
74 const int end = fBegin + fAdvance * (fShader.fColorCount - 2); in iterateImplicitPos()
80 SkASSERT(curr >= 0 && curr < fShader.fColorCount); in iterateImplicitPos()
92 const SkGradientShaderBase& fShader; member in __anoned0a85380111::IntervalIterator
/external/skia/src/effects/
DSkShaderMaskFilter.cpp18 SkShaderMF(sk_sp<SkShader> shader) : fShader(std::move(shader)) {} in SkShaderMF()
40 sk_sp<SkShader> fShader;
55 buffer.writeFlattenable(fShader.get()); in flatten()
101 paint.setShader(fShader); in filterMask()
117 return GrFragmentProcessor::MulInputByChildAlpha(as_SB(fShader)->asFragmentProcessor(args)); in onAsFragmentProcessor()
/external/skqp/src/effects/
DSkShaderMaskFilter.cpp17 SkShaderMF(sk_sp<SkShader> shader) : fShader(std::move(shader)) {} in SkShaderMF()
39 sk_sp<SkShader> fShader;
54 buffer.writeFlattenable(fShader.get()); in flatten()
100 paint.setShader(fShader); in filterMask()
117 return GrFragmentProcessor::MulInputByChildAlpha(as_SB(fShader)->asFragmentProcessor(args)); in onAsFragmentProcessor()
/external/skqp/gm/
Dsamplerstress.cpp69 if (fShader) { in createShader()
75 fShader = SkShader::MakeBitmapShader(fTexture, SkShader::kRepeat_TileMode, in createShader()
98 paint.setShader(fShader); in onDraw()
134 sk_sp<SkShader> fShader; member in skiagm::SamplerStressGM
Dtextblobshader.cpp72 fShader = SkGradientShader::MakeRadial(SkPoint::Make(SkIntToScalar(sz.width() / 2), in onOnceBeforeDraw()
91 p.setShader(fShader); in onDraw()
108 sk_sp<SkShader> fShader; member in TextBlobShaderGM
Dconstcolorprocessor.cpp43 fShader = SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in onOnceBeforeDraw()
98 skPaint.setShader(fShader); in onDraw()
173 sk_sp<SkShader> fShader; member in skiagm::ConstColorProcessor
/external/skia/gm/
Dsamplerstress.cpp81 if (fShader) { in createShader()
87 fShader = fTexture.makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, in createShader()
110 paint.setShader(fShader); in onDraw()
143 sk_sp<SkShader> fShader; member in skiagm::SamplerStressGM
Dtextblobshader.cpp84 fShader = SkGradientShader::MakeRadial(SkPoint::Make(SkIntToScalar(sz.width() / 2), in onOnceBeforeDraw()
103 p.setShader(fShader); in onDraw()
120 sk_sp<SkShader> fShader; member in TextBlobShaderGM
Dconstcolorprocessor.cpp77 fShader = SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in onOnceBeforeDraw()
114 baseFP = as_SB(fShader)->asFragmentProcessor(args); in onDraw()
205 sk_sp<SkShader> fShader; member in skiagm::ColorProcessor
/external/skia/src/gpu/
DGrReducedClip.h60 bool hasShader() const { return SkToBool(fShader); } in hasShader()
61 sk_sp<SkShader> shader() const { SkASSERT(fShader); return fShader; } in shader()
162 sk_sp<SkShader> fShader; variable
/external/skia/modules/particles/src/
DSkParticleBinding.cpp174 , fShader(std::move(shader)) {} in SkShaderExternalFunction()
190 skvm::Color result = as_SB(fShader)->program( in call()
202 sk_sp<SkShader> fShader; member in SkShaderExternalFunction
223 return std::make_unique<SkShaderExternalFunction>(fName.c_str(), compiler, fShader, in toFunction()
232 fShader = image->makeShader(SkSamplingOptions(SkFilterMode::kLinear), &normalize); in prepare()
237 fShader = SkShaders::Color(SK_ColorWHITE); in prepare()
245 sk_sp<SkShader> fShader; member in SkImageBinding
/external/skia/bench/
DFilteringBench.cpp32 fShader = img->makeShader(SkTileMode::kClamp, SkTileMode::kClamp, fSampling); in onDelayedSetup()
40 paint.setShader(fShader); in onDraw()
51 sk_sp<SkShader> fShader; member in FilteringBench
/external/skia/modules/sksg/include/
DSkSGRenderEffect.h37 return fShader; in getShader()
48 sk_sp<SkShader> fShader;
72 sk_sp<Shader> fShader; variable
84 SG_ATTRIBUTE(Shader, sk_sp<SkShader>, fShader)
92 sk_sp<SkShader> fShader; variable
/external/skqp/src/gpu/ccpr/
DGrCCCoverageProcessor_GSImpl.cpp21 GSImpl(std::unique_ptr<Shader> shader) : fShader(std::move(shader)) {} in GSImpl()
45 fShader->emitFragmentCode(proc, args.fFragBuilder, args.fOutputColor, args.fOutputCoverage); in onEmitCode()
89 fShader->emitVaryings(varyingHandler, GrGLSLVarying::Scope::kGeoToFrag, &fnBody, in emitGeometryShader()
111 const std::unique_ptr<Shader> fShader; member in GrCCCoverageProcessor::GSImpl
134 fShader->emitSetupCode(g, "pts", wind.c_str()); in onEmitGeometryShader()
229 fShader->emitSetupCode(g, "pts", wind.c_str(), &hullPts); in onEmitGeometryShader()
297 fShader->emitSetupCode(g, "pts", wind.c_str()); in onEmitGeometryShader()
/external/skia/src/core/
DSkRasterClip.cpp138 , fClipRestrictionRect(that.fClipRestrictionRect), fShader(that.fShader) in SkRasterClip()
164 fShader = that.fShader; in operator =()
375 if (!fShader) { in op()
376 fShader = sh; in op()
378 fShader = SkShaders::Blend(SkBlendMode::kSrcIn, sh, fShader); in op()
DSkClipStack.cpp27 fShader.reset(); in Element()
32 fShader.reset(); in Element()
36 fShader.reset(); in Element()
41 fShader = that.fShader; in Element()
164 fShader = as_SB(fShader)->makeInvertAlpha(); in invertShapeFillType()
248 fShader = std::move(shader); in initShader()
283 fShader.reset(); in setEmpty()
295 SkASSERT(!fShader); in checkEmpty()
807 prior->fShader = SkShaders::Blend(SkBlendMode::kSrcIn, in pushElement()
808 element.fShader, prior->fShader); in pushElement()
/external/skqp/samplecode/
DSampleShaders.cpp40 sk_sp<SkShader> fShader; member in ShaderView
61 fShader = SkShader::MakeComposeShader(std::move(shaderA), std::move(shaderB), in ShaderView()
84 paint.setShader(fShader); in onDrawContent()
DSampleColorFilter.cpp111 sk_sp<SkShader> fShader; member in ColorFilterView
119 fShader = sk_tool_utils::create_checkerboard_shader( in onOnceBeforeDraw()
137 paint.setShader(fShader); in onDrawBackground()
/external/skia/src/gpu/tessellate/
DGrStrokeTessellator.h32 , fShader(shaderMode, shaderFlags, viewMatrix, fPathStrokeList->fStroke, in GrStrokeTessellator()
36 const GrPathShader* shader() const { return &fShader; } in shader()
50 GrStrokeTessellateShader fShader; variable

1234