Home
last modified time | relevance | path

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

12

/external/skia/src/core/
DSkColorFilterShader.cpp20 : fShader(std::move(shader)) in SkColorFilterShader()
23 SkASSERT(fShader); in SkColorFilterShader()
37 buffer.writeFlattenable(fShader.get()); in flatten()
42 const SkColorFilterShader& filterShader = static_cast<const SkColorFilterShader&>(fShader); in getFlags()
58 SkShader::Context* shaderContext = fShader->makeContext(rec, alloc); in onMakeContext()
76 const SkColorFilterShader& filterShader = static_cast<const SkColorFilterShader&>(fShader); in shadeSpan()
84 const SkColorFilterShader& filterShader = static_cast<const SkColorFilterShader&>(fShader); in shadeSpan4f()
95 sk_sp<GrFragmentProcessor> fp1(fShader->asFragmentProcessor(args)); in asFragmentProcessor()
116 fShader->toString(str); in toString()
DSkRasterPipelineBlitter.cpp49 SkRasterPipeline fShader; member in SkRasterPipelineBlitter
100 SkRasterPipeline* pipeline = &blitter->fShader; in Create()
228 p.extend(fShader); in blitH()
242 p.extend(fShader); in blitAntiH()
280 p.extend(fShader); in blitMask()
296 p.extend(fShader); in blitMask()
DSkPictureShader.cpp72 , fShader(SkRef(tileShader)) {} in BitmapShaderRec()
75 sk_sp<SkShader> fShader; member
90 *result = rec.fShader; in Visitor()
DSkColorFilterShader.h53 sk_sp<SkShader> fShader;
DSkShader.cpp101 : fShader(shader), fCTM(*rec.fMatrix) in Context()
105 SkAssertResult(fShader.computeTotalInverse(rec, &fTotalInverse)); in Context()
DSkBlitter.cpp974 , fShader(paint.getShader()) in SkShaderBlitter()
976 SkASSERT(fShader); in SkShaderBlitter()
979 fShader->ref(); in SkShaderBlitter()
985 fShader->unref(); in ~SkShaderBlitter()
DSkCoreBlitters.h41 const SkShader* fShader; variable
DSkComposeShader.cpp123 SkBlendMode mode = static_cast<const SkComposeShader&>(fShader).fMode; in shadeSpan()
/external/skia/gm/
Dsamplerstress.cpp69 if (fShader) { in createShader()
75 fShader = SkShader::MakeBitmapShader(fTexture, SkShader::kRepeat_TileMode, in createShader()
99 paint.setShader(fShader); in onDraw()
141 sk_sp<SkShader> fShader; member in skiagm::SamplerStressGM
Dtextblobshader.cpp72 fShader = SkGradientShader::MakeRadial(SkPoint::Make(SkIntToScalar(sz.width() / 2), in onOnceBeforeDraw()
90 p.setShader(fShader); in onDraw()
108 sk_sp<SkShader> fShader; member in TextBlobShaderGM
Dconstcolorprocessor.cpp45 fShader = SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in onOnceBeforeDraw()
100 skPaint.setShader(fShader); in onDraw()
177 sk_sp<SkShader> fShader; member in skiagm::ConstColorProcessor
Dgradients.cpp630 fShader = SkGradientShader::MakeRadial(center, kRadius, gColors, nullptr, 2, in onOnceBeforeDraw()
636 paint.setShader(fShader); in onDraw()
642 sk_sp<SkShader> fShader; member in skiagm::RadialGradient3GM
667 fShader = SkGradientShader::MakeRadial(center, kRadius, colors, pos, in onOnceBeforeDraw()
675 paint.setShader(fShader); in onDraw()
680 sk_sp<SkShader> fShader; member in skiagm::RadialGradient4GM
710 for (int index = 0; index < (int) SK_ARRAY_COUNT(fShader); ++index) { in onOnceBeforeDraw()
715 fShader[index] = SkGradientShader::MakeLinear(pts, colors, pos, in onOnceBeforeDraw()
724 for (int index = 0; index < (int) SK_ARRAY_COUNT(fShader); ++index) { in onDraw()
725 paint.setShader(fShader[index]); in onDraw()
[all …]
Dbleed.cpp232 paint.setShader(fShader); in drawCase1()
248 paint.setShader(fShader); in drawCase2()
267 paint.setShader(fShader); in drawCase3()
285 paint.setShader(fShader); in drawCase4()
303 paint.setShader(fShader); in drawCase5()
317 fShader = gBleedRec[fBT].fShaderMaker(); in onDraw()
434 sk_sp<SkShader> fShader; member in BleedGM
Dcomposeshader.cpp39 fShader = make_shader(SkBlendMode::kDstIn); in ComposeShaderGM()
55 paint.setShader(fShader); in onDraw()
60 sk_sp<SkShader> fShader; member in ComposeShaderGM
/external/skia/bench/
DPDFBench.cpp200 sk_sp<SkShader> fShader; member
209 fShader = SkGradientShader::MakeLinear( in onDelayedSetup()
214 SkASSERT(fShader); in onDraw()
221 &doc, 72, fShader.get(), SkMatrix::I(), in onDraw()
/external/skia/samplecode/
DSampleShaders.cpp41 sk_sp<SkShader> fShader; member in ShaderView
62 fShader = SkShader::MakeComposeShader(std::move(shaderA), std::move(shaderB), in ShaderView()
86 paint.setShader(fShader); in onDrawContent()
DSampleColorFilter.cpp112 sk_sp<SkShader> fShader; member in ColorFilterView
119 fShader = sk_tool_utils::create_checkerboard_shader( in ColorFilterView()
139 paint.setShader(fShader); in onDrawBackground()
DSampleFatBits.cpp72 if (fShader == fShader0) { in togglePixelColors()
73 fShader = fShader1; in togglePixelColors()
75 fShader = fShader0; in togglePixelColors()
98 fShader = fShader0; in setWHZ()
122 sk_sp<SkShader> fShader; member in FatBits
182 paint.setShader(fShader); in drawBG()
/external/skia/src/effects/gradients/
DSkGradientShaderPriv.h147 const SkGradientShaderBase& fShader; variable
340 , fShader(shader) in CreateArgs()
347 const SkGradientShaderBase* fShader; member
DSkGradientShader.cpp409 , fShader(shader) in GradientShaderCache()
589 if (cache->fShader.fColorCount == 2) { in initCache32()
590 Build32bitCache(cache->fCache32, cache->fShader.fOrigColors[0], in initCache32()
591 cache->fShader.fOrigColors[1], kCache32Count, cache->fCacheAlpha, in initCache32()
592 cache->fShader.fGradFlags, cache->fCacheDither); in initCache32()
594 Rec* rec = cache->fShader.fRecs; in initCache32()
596 for (int i = 1; i < cache->fShader.fColorCount; i++) { in initCache32()
601 Build32bitCache(cache->fCache32 + prevIndex, cache->fShader.fOrigColors[i-1], in initCache32()
602 cache->fShader.fOrigColors[i], nextIndex - prevIndex + 1, in initCache32()
603 cache->fCacheAlpha, cache->fShader.fGradFlags, cache->fCacheDither); in initCache32()
[all …]
DSkTwoPointConicalGradient_gpu.cpp95 *static_cast<const SkTwoPointConicalGradient*>(args.fShader); in Edge2PtConicalEffect()
401 return static_cast<const SkTwoPointConicalGradient*>(args.fShader)->isFlippedGrad(); in IsFlipped()
614 : INHERITED(args, args.fShader->colorsAreOpaque()), fFocalX(focalX) { in FocalInside2PtConicalEffect()
857 : INHERITED(args, args.fShader->colorsAreOpaque()), fInfo(info) { in CircleInside2PtConicalEffect()
1080 *static_cast<const SkTwoPointConicalGradient*>(args.fShader); in CircleOutside2PtConicalEffect()
1303 *static_cast<const SkTwoPointConicalGradient*>(args.fShader); in Make()
1317 GrGradientEffect::CreateArgs newArgs(args.fContext, args.fShader, &matrix, args.fTileMode, in Make()
DSkRadialGradient.cpp192 const SkRadialGradient& radialGradient = static_cast<const SkRadialGradient&>(fShader); in shadeSpan()
257 GrRadialGradient(const CreateArgs& args) : INHERITED(args, args.fShader->colorsAreOpaque()) { in GrRadialGradient()
DSkSweepGradient.cpp139 GrSweepGradient(const CreateArgs& args) : INHERITED(args, args.fShader->colorsAreOpaque()) { in GrSweepGradient()
/external/skia/include/core/
DSkPaint.h481 SkShader* getShader() const { return fShader.get(); } in getShader()
1053 sk_sp<SkShader> fShader; variable
DSkShader.h205 const SkShader& fShader;

12