Home
last modified time | relevance | path

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

12

/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/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()
DSkDevice.h172 sh = as_SB(sh)->makeWithCTM(this->localToDevice()); in clipShader()
174 sh = as_SB(sh)->makeInvertAlpha(); in clipShader()
DSkRasterPipelineBlitter.cpp104 auto shader = as_SB(paint.getShader()); in SkCreateRasterPipelineBlitter()
173 if (as_SB(clipShader)->appendStages(rec)) { in Create()
DSkRuntimeEffect.cpp793 auto childFP = as_SB(child.shader())->asFragmentProcessor(childArgs); in make_effect_fp()
875 return as_SB(shader)->program(p, coord, coord, c, mats, /*localM=*/nullptr, in onProgram()
1039 return as_SB(shader)->program(p, device, coord, paint, mats, /*localM=*/nullptr, in onProgram()
1149 return as_SB(shader)->program(p, coord, coord, src, mats, /*localM=*/nullptr, in onProgram()
1293 childFPs.push_back(as_SB(shader)->asFragmentProcessor(args)); in makeImage()
DSkDevice.cpp420 const auto nested_shader = as_SB(shader)->makeAsALocalMatrixShader(&outer_lm); in make_post_inverse_lm()
428 const auto lm = *as_SB(shader)->totalLocalMatrix(nullptr); in make_post_inverse_lm()
DSkDraw_vertices.cpp400 if (auto updater = as_SB(shader)->appendUpdatableStages(rec)) { in drawFixedVertices()
473 texCoordShader = as_SB(shader)->updatableShader(outerAlloc); in drawFixedVertices()
DSkClipStack.cpp165 fShader = as_SB(fShader)->makeInvertAlpha(); in invertShapeFillType()
/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()
DSkPDFShader.cpp273 SkMatrix shaderTransform = as_SB(shader)->getLocalMatrix(); in make_fallback_shader()
/third_party/skia/src/effects/
DSkShaderMaskFilter.cpp117 return GrFragmentProcessor::MulInputByChildAlpha(as_SB(fShader)->asFragmentProcessor(args)); in onAsFragmentProcessor()
/third_party/skia/gm/
Dconstcolorprocessor.cpp117 baseFP = as_SB(fShader)->asFragmentProcessor(args); in onDraw()
/third_party/skia/modules/particles/src/
DSkParticleBinding.cpp190 skvm::Color result = as_SB(fShader)->program( in call()
/third_party/skia/src/svg/
DSkSVGDevice.cpp594 if (!as_SB(shader)->getLocalMatrix().isIdentity()) { in addLinearGradientDef()
595 this->addAttribute("gradientTransform", svg_transform(as_SB(shader)->getLocalMatrix())); in addLinearGradientDef()
/third_party/skia/tests/
DGradientTest.cpp401 as_SB(gradient)->asFragmentProcessor(args); in test_unsorted_degenerate()
DTriangulatingPathRendererTests.cpp709 return as_SB(shader)->asFragmentProcessor({rContext, matrixProvider, &colorInfo}); in create_linear_gradient_processor()
/third_party/skia/src/gpu/
DSkGr.cpp433 if (const SkShaderBase* shader = as_SB(skPaint.getShader())) { in skpaint_to_grpaint_impl()

12