Home
last modified time | relevance | path

Searched refs:as_SB (Results 1 – 25 of 60) sorted by relevance

123

/third_party/skia/src/shaders/
DSkLocalMatrixShader.cpp21 return as_SB(fProxyShader)->asFragmentProcessor( in asFragmentProcessor()
53 return as_SB(fProxyShader)->makeContext(newRec, alloc); in onMakeContext()
76 return as_SB(fProxyShader)->appendStages(newRec); in onAppendStages()
89 return as_SB(fProxyShader)->program(p, device,local, paint, in onProgram()
103 sk_sp<SkShader> proxy(as_SB(this)->makeAsALocalMatrixShader(&otherLocalMatrix)); in makeWithLocalMatrix()
155 return as_SB(fProxyShader)->appendStages(newRec); in onAppendStages()
164 return as_SB(fProxyShader)->program(p, device,local, paint, in onProgram()
188 auto base = as_SB(fProxyShader)->asFragmentProcessor( in asFragmentProcessor()
DSkComposeShader.cpp114 if (!as_SB(s0)->appendStages(rec)) { in append_two_shaders()
119 if (!as_SB(s1)->appendStages(rec)) { in append_two_shaders()
148 if ((d = as_SB(fDst)->program(p, device,local, paint, mats,localM, cinfo, uniforms,alloc)) && in onProgram()
149 (s = as_SB(fSrc)->program(p, device,local, paint, mats,localM, cinfo, uniforms,alloc))) in onProgram()
169 auto fpA = as_SB(fDst)->asFragmentProcessor(args); in asFragmentProcessor()
170 auto fpB = as_SB(fSrc)->asFragmentProcessor(args); in asFragmentProcessor()
DSkColorFilterShader.cpp53 if (!as_SB(fShader)->appendStages(rec)) { 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()
DSkShaderBase.h276 inline SkShaderBase* as_SB(SkShader* shader) { in as_SB() function
280 inline const SkShaderBase* as_SB(const SkShader* shader) { in as_SB() function
284 inline const SkShaderBase* as_SB(const sk_sp<SkShader>& shader) { in as_SB() function
DSkShader.cpp122 return as_SB(this)->onIsAImage(localMatrix, xy); in isAImage()
144 return alloc->make<SkTransformShader>(*as_SB(this)); in updatableShader()
186 cb->ctx = as_SB(this)->makeContext(cr, rec.fAlloc); in onAppendStages()
DSkPictureShader.cpp293 return as_SB(bitmapShader)->appendStages(localRec); in onAppendStages()
311 return as_SB(bitmapShader)->program(p, device,local, paint, in onProgram()
348 fBitmapShaderContext = as_SB(fBitmapShader)->makeContext(rec, alloc); in PictureShaderContext()
/third_party/flutter/skia/src/shaders/
DSkLocalMatrixShader.cpp18 return as_SB(fProxyShader)->asFragmentProcessor( in asFragmentProcessor()
50 return as_SB(fProxyShader)->makeContext(newRec, alloc); in onMakeContext()
69 SkPicture* picture = as_SB(fProxyShader)->isAPicture(&proxyMatrix, tileModes, tile); in isAPicture()
84 return as_SB(fProxyShader)->appendStages(newRec); in onAppendStages()
96 sk_sp<SkShader> proxy(as_SB(this)->makeAsALocalMatrixShader(&otherLocalMatrix)); in makeWithLocalMatrix()
DSkShaderBase.h240 inline SkShaderBase* as_SB(SkShader* shader) { in as_SB() function
244 inline const SkShaderBase* as_SB(const SkShader* shader) { in as_SB() function
248 inline const SkShaderBase* as_SB(const sk_sp<SkShader>& shader) { in as_SB() function
DSkColorFilterShader.cpp42 if (!as_SB(fShader)->appendStages(rec)) { in onAppendStages()
56 auto fp1 = as_SB(fShader)->asFragmentProcessor(args); in asFragmentProcessor()
DSkComposeShader.cpp87 if (!as_SB(shader)->appendStages(rec)) { in append_shader_or_paint()
194 if (!as_SB(fRed)->appendStages(rec)) { in onAppendStages()
219 return shader ? as_SB(shader)->asFragmentProcessor(args) : nullptr; in as_fp()
247 auto red = as_SB(fRed)->asFragmentProcessor(args); in asFragmentProcessor()
DSkShader.cpp118 return as_SB(this)->onIsAImage(localMatrix, xy); in isAImage()
170 cb->ctx = as_SB(this)->makeContext(cr, rec.fAlloc); in onAppendStages()
DSkPictureShader.cpp287 return as_SB(bitmapShader)->appendStages(localRec); in onAppendStages()
322 fBitmapShaderContext = as_SB(fBitmapShader)->makeContext(rec, alloc); in PictureShaderContext()
363 return as_SB(bitmapShader)->asFragmentProcessor(newArgs); in asFragmentProcessor()
/third_party/skia/src/core/
DSkSpecialSurface.cpp40 static SkSpecialSurface_Base* as_SB(SkSpecialSurface* surface) { in as_SB() function
53 return as_SB(this)->onGetCanvas(); in getCanvas()
57 sk_sp<SkSpecialImage> image(as_SB(this)->onMakeImageSnapshot()); in makeImageSnapshot()
58 as_SB(this)->reset(); in makeImageSnapshot()
DSkPaintPriv.cpp65 (p.getShader() && !as_SB(p.getShader())->isConstant()); in ShouldDither()
73 const auto* shader = as_SB(paint.getShader()); in just_a_color()
DSkDraw_atlas.cpp118 SkStageUpdater* updator = as_SB(atlasShader.get())->appendUpdatableStages(rec); in drawAtlas()
182 auto updateShader = as_SB(atlasShader)->updatableShader(&alloc); in drawAtlas()
190 shader = as_SB(updateShader); in drawAtlas()
DSkVMBlitter.cpp104 skvm::Color c = as_SB(fShader)->program(p, device,local, paint, in onProgram()
248 if (paint.isDither() && !as_SB(shader)->isConstant()) { in EffectiveParams()
314 skvm::Color src = as_SB(params.shader)->program(p, device, /*local=*/device, paint, in BuildProgram()
371 skvm::Color clip = as_SB(params.clip)->program(p, device, /*local=*/device, paint, in BuildProgram()
434 const SkShaderBase* sb = as_SB(shader); in CacheKey()
/third_party/flutter/skia/src/core/
DSkSpecialSurface.cpp39 static SkSpecialSurface_Base* as_SB(SkSpecialSurface* surface) { in as_SB() function
52 return as_SB(this)->onGetCanvas(); in getCanvas()
56 sk_sp<SkSpecialImage> image(as_SB(this)->onMakeImageSnapshot()); in makeImageSnapshot()
57 as_SB(this)->reset(); in makeImageSnapshot()
DSkPaintPriv.cpp59 || !p.getShader() || !as_SB(p.getShader())->isConstant(); in ShouldDither()
67 const auto* shader = as_SB(paint.getShader()); in just_a_color()
DSkNormalMapSource.cpp126 std::unique_ptr<GrFragmentProcessor> mapFP = as_SB(fMapShader)->asFragmentProcessor(args); in asFragmentProcessor()
160 auto* context = as_SB(fMapShader)->makeContext(overrideRec, alloc); in asProvider()
170 SkMatrix total = SkMatrix::Concat(*rec.fMatrix, as_SB(fMapShader)->getLocalMatrix()); in computeNormTotalInverse()
/third_party/skia/src/pdf/
DSkPDFUtils.h117 if (sk_sp<SkShader> s = as_SB(shader)->makeAsALocalMatrixShader(&localMatrix)) { in GetShaderLocalMatrix()
118 return SkMatrix::Concat(as_SB(s)->getLocalMatrix(), localMatrix); in GetShaderLocalMatrix()
120 return as_SB(shader)->getLocalMatrix(); in GetShaderLocalMatrix()
/third_party/flutter/skia/src/pdf/
DSkPDFUtils.h117 if (sk_sp<SkShader> s = as_SB(shader)->makeAsALocalMatrixShader(&localMatrix)) { in GetShaderLocalMatrix()
118 return SkMatrix::Concat(as_SB(s)->getLocalMatrix(), localMatrix); in GetShaderLocalMatrix()
120 return as_SB(shader)->getLocalMatrix(); in GetShaderLocalMatrix()
/third_party/flutter/skia/src/gpu/gradients/generated/
DGrLinearGradientLayout.cpp74 std::unique_ptr<GrFragmentProcessor> fp = as_SB(shader)->asFragmentProcessor(asFPArgs.args()); in TestCreate()
DGrRadialGradientLayout.cpp77 fp = shader ? as_SB(shader)->asFragmentProcessor(asFPArgs.args()) : nullptr; in TestCreate()
/third_party/flutter/skia/src/gpu/gradients/
DGrRadialGradientLayout.fp67 fp = shader ? as_SB(shader)->asFragmentProcessor(asFPArgs.args()) : nullptr;
/third_party/skia/src/effects/
DSkShaderMaskFilter.cpp117 return GrFragmentProcessor::MulInputByChildAlpha(as_SB(fShader)->asFragmentProcessor(args)); in onAsFragmentProcessor()

123