Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
skgpu::graphite::PrecompileShadersPriv Namespace Reference

Functions

sk_sp< PrecompileShaderBlur (sk_sp< PrecompileShader > child)
 
sk_sp< PrecompileShaderCTM (SkSpan< const sk_sp< PrecompileShader > > wrapped)
 
sk_sp< PrecompileShaderImage (SkEnumBitMask< PrecompileImageShaderFlags >)
 
sk_sp< PrecompileShaderLinearGradient (bool withLM)
 
sk_sp< PrecompileShaderRadialGradient (bool withLM)
 
sk_sp< PrecompileShaderTwoPointConicalGradient (bool withLM)
 
sk_sp< PrecompileShaderSweepGradient (bool withLM)
 
sk_sp< PrecompileShaderPicture (bool withLM)
 
sk_sp< PrecompileShaderLocalMatrixBothVariants (SkSpan< const sk_sp< PrecompileShader > > wrapped)
 

Function Documentation

◆ Blur()

sk_sp< PrecompileShader > skgpu::graphite::PrecompileShadersPriv::Blur ( sk_sp< PrecompileShader child)

Definition at line 981 of file FactoryFunctions.cpp.

981 {
982 return sk_make_sp<PrecompileBlurShader>(std::move(wrapped));
983}
static sk_sp< GrTextureProxy > wrapped(skiatest::Reporter *reporter, GrRecordingContext *rContext, GrProxyProvider *proxyProvider, SkBackingFit fit)

◆ CTM()

sk_sp< PrecompileShader > skgpu::graphite::PrecompileShadersPriv::CTM ( SkSpan< const sk_sp< PrecompileShader > >  wrapped)

Definition at line 928 of file FactoryFunctions.cpp.

928 {
929 return sk_make_sp<PrecompileCTMShader>(std::move(wrapped));
930}

◆ Image()

sk_sp< PrecompileShader > skgpu::graphite::PrecompileShadersPriv::Image ( SkEnumBitMask< PrecompileImageShaderFlags flags)

Definition at line 505 of file FactoryFunctions.cpp.

506 {
507 return PrecompileShaders::LocalMatrix({ sk_make_sp<PrecompileImageShader>(flags) });
508}
FlutterSemanticsFlag flags

◆ LinearGradient()

sk_sp< PrecompileShader > skgpu::graphite::PrecompileShadersPriv::LinearGradient ( bool  withLM)

Definition at line 611 of file FactoryFunctions.cpp.

611 {
613 sk_make_sp<PrecompileGradientShader>(SkShaderBase::GradientType::kLinear);
614 if (withLM) {
615 return PrecompileShaders::LocalMatrix({ std::move(s) });
616 }
617 return s;
618}
struct MyStruct s

◆ LocalMatrixBothVariants()

sk_sp< PrecompileShader > skgpu::graphite::PrecompileShadersPriv::LocalMatrixBothVariants ( SkSpan< const sk_sp< PrecompileShader > >  wrapped)

Definition at line 762 of file FactoryFunctions.cpp.

763 {
764 return sk_make_sp<PrecompileLocalMatrixShader>(
765 std::move(wrapped),
766 PrecompileLocalMatrixShader::Flags::kIncludeWithOutVariant);
767}

◆ Picture()

sk_sp< PrecompileShader > skgpu::graphite::PrecompileShadersPriv::Picture ( bool  withLM)

Definition at line 554 of file FactoryFunctions.cpp.

554 {
555 sk_sp<PrecompileShader> s = PrecompileShaders::Image();
556 if (withLM) {
557 return PrecompileShaders::LocalMatrix({ std::move(s) });
558 }
559 return s;
560}

◆ RadialGradient()

sk_sp< PrecompileShader > skgpu::graphite::PrecompileShadersPriv::RadialGradient ( bool  withLM)

Definition at line 626 of file FactoryFunctions.cpp.

626 {
628 sk_make_sp<PrecompileGradientShader>(SkShaderBase::GradientType::kRadial);
629 if (withLM) {
630 return PrecompileShaders::LocalMatrix({ std::move(s) });
631 }
632 return s;
633}

◆ SweepGradient()

sk_sp< PrecompileShader > skgpu::graphite::PrecompileShadersPriv::SweepGradient ( bool  withLM)

Definition at line 641 of file FactoryFunctions.cpp.

641 {
643 sk_make_sp<PrecompileGradientShader>(SkShaderBase::GradientType::kSweep);
644 if (withLM) {
645 return PrecompileShaders::LocalMatrix({ std::move(s) });
646 }
647 return s;
648}

◆ TwoPointConicalGradient()

sk_sp< PrecompileShader > skgpu::graphite::PrecompileShadersPriv::TwoPointConicalGradient ( bool  withLM)

Definition at line 656 of file FactoryFunctions.cpp.

656 {
658 sk_make_sp<PrecompileGradientShader>(SkShaderBase::GradientType::kConical);
659 if (withLM) {
660 return PrecompileShaders::LocalMatrix({ std::move(s) });
661 }
662 return s;
663}