/third_party/skia/modules/sksg/src/ |
D | SkSGRenderEffect.cpp | 24 , 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 …]
|
D | SkSGPaint.cpp | 61 : 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()
|
/third_party/flutter/skia/modules/sksg/src/ |
D | SkSGRenderEffect.cpp | 86 , fShader(std::move(shader)) { in ShaderEffect() 87 if (fShader) { in ShaderEffect() 88 this->observeInval(fShader); in ShaderEffect() 93 if (fShader) { in ~ShaderEffect() 94 this->unobserveInval(fShader); in ~ShaderEffect() 99 if (fShader) { in setShader() 100 this->unobserveInval(fShader); in setShader() 103 fShader = std::move(sh); in setShader() 105 if (fShader) { in setShader() 106 this->observeInval(fShader); in setShader() [all …]
|
D | SkSGPaint.cpp | 60 : fShader(std::move(sh)) { in ShaderPaint() 61 this->observeInval(fShader); in ShaderPaint() 65 this->unobserveInval(fShader); in ~ShaderPaint() 71 return fShader->revalidate(ic, ctm); in onRevalidate() 75 paint->setShader(fShader->getShader()); in onApplyToPaint()
|
D | SkSGRenderNode.cpp | 90 if (fShader) { in modulatePaint() 91 paint->setShader(fShader->makeWithLocalMatrix(ComputeDiffInverse(fShaderCTM, ctm))); in modulatePaint() 126 if (!fCtx.fShader) { in modulateShader() 127 fCtx.fShader = std::move(sh); in modulateShader()
|
/third_party/skia/src/shaders/ |
D | SkColorFilterShader.cpp | 25 : 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()
|
D | SkTransformShader.cpp | 12 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/flutter/skia/src/shaders/ |
D | SkColorFilterShader.cpp | 20 : fShader(std::move(shader)) in SkColorFilterShader() 23 SkASSERT(fShader); in SkColorFilterShader() 37 buffer.writeFlattenable(fShader.get()); in flatten() 42 if (!as_SB(fShader)->appendStages(rec)) { in onAppendStages() 45 fFilter->appendStages(rec, fShader->isOpaque()); in onAppendStages() 56 auto fp1 = as_SB(fShader)->asFragmentProcessor(args); in asFragmentProcessor()
|
/third_party/skia/experimental/graphite/src/ |
D | DrawList.cpp | 21 , 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()
|
/third_party/skia/src/shaders/gradients/ |
D | Sk4fGradientBase.cpp | 32 : 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 __anon145fd56b0111::IntervalIterator
|
/third_party/flutter/skia/src/shaders/gradients/ |
D | Sk4fGradientBase.cpp | 32 : 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 __anon0c1d6e600111::IntervalIterator
|
/third_party/skia/src/effects/ |
D | SkShaderMaskFilter.cpp | 18 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/src/core/ |
D | SkRasterClip.cpp | 16 , 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()
|
D | SkClipStack.cpp | 26 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()
|
/third_party/flutter/skia/src/gpu/ccpr/ |
D | GrSampleMaskProcessor.cpp | 15 Impl(std::unique_ptr<Shader> shader) : fShader(std::move(shader)) {} in Impl() 23 const std::unique_ptr<Shader> fShader; member in GrSampleMaskProcessor::Impl 50 fShader->emitSetupCode(v, "pts", &hullPts); in onEmitCode() 54 fShader->emitVaryings(varyingHandler, GrGLSLVarying::Scope::kVertToFrag, in onEmitCode() 59 fShader->emitSampleMaskCode(args.fFragBuilder); in onEmitCode()
|
D | GrGSCoverageProcessor.cpp | 21 Impl(std::unique_ptr<Shader> shader) : fShader(std::move(shader)) {} in Impl() 47 fShader->emitFragmentCoverageCode(f, "coverage"); in onEmitCode() 89 if (!fShader->calculatesOwnEdgeCoverage()) { in emitGeometryShader() 104 fShader->emitVaryings(varyingHandler, GrGLSLVarying::Scope::kGeoToFrag, &fnBody, in emitGeometryShader() 118 if (!this->hasCoverage(proc) && !fShader->calculatesOwnEdgeCoverage()) { in emitGeometryShader() 137 const std::unique_ptr<Shader> fShader; member in GrGSCoverageProcessor::Impl 161 fShader->emitSetupCode(g, "pts"); in onEmitGeometryShader() 256 fShader->emitSetupCode(g, "pts", &hullPts); in onEmitGeometryShader() 326 fShader->emitSetupCode(g, "pts"); in onEmitGeometryShader() 396 if (!fShader->calculatesOwnEdgeCoverage()) { in onEmitGeometryShader()
|
D | GrVSCoverageProcessor.cpp | 17 : fShader(std::move(shader)), fNumSides(numSides) {} in Impl() 27 const std::unique_ptr<Shader> fShader; member in GrVSCoverageProcessor::Impl 283 fShader->emitSetupCode(v, "pts", (4 == fNumSides) ? &hullPts : nullptr); in onEmitCode() 388 } else if (!fShader->calculatesOwnEdgeCoverage()) { in onEmitCode() 409 } else if (!fShader->calculatesOwnEdgeCoverage()) { in onEmitCode() 440 fShader->emitVaryings(varyingHandler, GrGLSLVarying::Scope::kVertToFrag, &AccessCodeString(v), in onEmitCode() 449 fShader->emitFragmentCoverageCode(f, "coverage"); in onEmitCode()
|
/third_party/flutter/skia/src/effects/ |
D | SkShaderMaskFilter.cpp | 17 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()
|
/third_party/skia/gm/ |
D | samplerstress.cpp | 81 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
|
/third_party/flutter/skia/gm/ |
D | samplerstress.cpp | 81 if (fShader) { in createShader() 87 fShader = fTexture.makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat); in createShader() 109 paint.setShader(fShader); in onDraw() 145 sk_sp<SkShader> fShader; member in skiagm::SamplerStressGM
|
D | textblobshader.cpp | 84 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
|
/third_party/skia/modules/particles/src/ |
D | SkParticleBinding.cpp | 174 , 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/ |
D | FilteringBench.cpp | 32 fShader = img->makeShader(SkTileMode::kClamp, SkTileMode::kClamp, fSampling); in onDelayedSetup() 40 paint.setShader(fShader); in onDraw() 51 sk_sp<SkShader> fShader; member in FilteringBench
|
/third_party/flutter/skia/samplecode/ |
D | SampleShaders.cpp | 51 sk_sp<SkShader> fShader; member 57 fShader = make_blend_shader(); in onOnceBeforeDraw() 70 paint.setShader(fShader); in onDrawContent()
|
/third_party/skia/modules/sksg/include/ |
D | SkSGRenderEffect.h | 37 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
|