Home
last modified time | relevance | path

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

123

/third_party/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()
/third_party/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()
DSkTransformShader.cpp12 SkTransformShader::SkTransformShader(const SkShaderBase& shader) : fShader{shader} {} in SkTransformShader()
21 return fShader.program( in onProgram()
41 fProcessingAsPerspective = matrix.hasPerspective() || fShader.getLocalMatrix().hasPerspective(); in applyMatrix()
51 fProcessingAsPerspective = matrix.hasPerspective() || fShader.getLocalMatrix().hasPerspective(); in appendMatrix()
/third_party/skia/experimental/graphite/src/
DDrawList.cpp21 , fShader(std::move(shader)) { in PaintParams()
26 , fShader(other.fShader) { in PaintParams()
33 fShader = other.fShader; in operator =()
37 sk_sp<SkShader> PaintParams::refShader() const { return fShader; } in refShader()
DDrawList.h48 SkShader* shader() const { return fShader.get(); } in shader()
54 sk_sp<SkShader> fShader; // For now only use SkShader::asAGradient() when converting to GPU variable
/third_party/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 __anond4e4d4cc0111::IntervalIterator
/third_party/skia/src/core/
DSkRasterClip.cpp16 , fShader(that.fShader) in SkRasterClip()
41 fShader = that.fShader; in operator =()
206 if (!fShader) { in op()
207 fShader = sh; in op()
209 fShader = SkShaders::Blend(SkBlendMode::kSrcIn, sh, fShader); in op()
DSkClipStack.cpp26 fShader.reset(); in Element()
31 fShader.reset(); in Element()
35 fShader.reset(); in Element()
40 fShader = that.fShader; in Element()
165 fShader = as_SB(fShader)->makeInvertAlpha(); in invertShapeFillType()
250 fShader = std::move(shader); in initShader()
292 fShader.reset(); in setEmpty()
304 SkASSERT(!fShader); in checkEmpty()
713 prior->fShader = SkShaders::Blend(SkBlendMode::kSrcIn, in pushElement()
714 element.fShader, prior->fShader); in pushElement()
DSkRasterClip.h88 sk_sp<SkShader> clipShader() const { return fShader; } in clipShader()
98 sk_sp<SkShader> fShader; variable
/third_party/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()
/third_party/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.cpp75 fShader = SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in onOnceBeforeDraw()
117 baseFP = as_SB(fShader)->asFragmentProcessor(args); in onDraw()
205 sk_sp<SkShader> fShader; member in skiagm::ColorProcessor
Dgradients.cpp605 fShader = SkGradientShader::MakeRadial(center, kRadius, kColors, nullptr, 2, in onOnceBeforeDraw()
611 paint.setShader(fShader); in onDraw()
617 sk_sp<SkShader> fShader; member in __anon121f564f0111::RadialGradient3GM
642 fShader = SkGradientShader::MakeRadial(center, kRadius, colors, pos, in onOnceBeforeDraw()
650 paint.setShader(fShader); in onDraw()
655 sk_sp<SkShader> fShader; member in __anon121f564f0111::RadialGradient4GM
685 for (int index = 0; index < (int) SK_ARRAY_COUNT(fShader); ++index) { in onOnceBeforeDraw()
690 fShader[index] = SkGradientShader::MakeLinear(pts, colors, pos, in onOnceBeforeDraw()
699 for (int index = 0; index < (int) SK_ARRAY_COUNT(fShader); ++index) { in onDraw()
700 paint.setShader(fShader[index]); in onDraw()
[all …]
/third_party/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
/third_party/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
DPDFBench.cpp203 sk_sp<SkShader> fShader; member
212 fShader = SkGradientShader::MakeLinear( in onDelayedSetup()
217 SkASSERT(fShader); in onDraw()
222 (void) SkPDFMakeShader(&doc, fShader.get(), SkMatrix::I(), in onDraw()
DVertBench.cpp43 sk_sp<SkShader> fShader; member in VertBench
61 fShader = img->makeShader(SkSamplingOptions(fm)); in onDelayedSetup()
125 paint.setShader(fShader); in onDraw()
/third_party/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
/third_party/skia/samplecode/
DSampleFatBits.cpp81 if (fShader == fShader0) { in togglePixelColors()
82 fShader = fShader1; in togglePixelColors()
84 fShader = fShader0; in togglePixelColors()
109 fShader = fShader0; in setWHZ()
133 sk_sp<SkShader> fShader; member in FatBits
193 paint.setShader(fShader); in drawBG()
DSampleClip.cpp492 sk_sp<SkShader> fShader; member in HalfPlaneView3
499 fShader = GetResourceAsImage("images/mandrill_128.png") in onOnceBeforeDraw()
518 paint.setShader(fShader); in onDrawContent()
551 sk_sp<SkShader> fShader; member in HalfPlaneCoons
573 fShader = GetResourceAsImage("images/mandrill_256.png")->makeShader(SkSamplingOptions()); in onOnceBeforeDraw()
586 paint.setShader(fShader); in onDrawContent()
/third_party/skia/tools/viewer/
DViewer.h85 fShader || in overridesSomething()
102 bool fShader = false; member
261 SkSL::String fShader[kGrShaderTypeCount]; member
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcParallelShaderCompileTests.cpp54 static const char* fShader = "\n" variable
273 const char* fSources[] = { shaderVersion, fShader }; in iterate()
274 const int fLengths[] = { int(strlen(shaderVersion)), int(strlen(fShader)) }; in iterate()

123