Flutter Engine
The Flutter Engine
Functions
skgpu::graphite::PrecompileShadersPriv Namespace Reference

Functions

sk_sp< PrecompileShaderBlur (sk_sp< PrecompileShader > wrapped)
 
sk_sp< PrecompileShaderDisplacement (sk_sp< PrecompileShader > displacement, sk_sp< PrecompileShader > color)
 
sk_sp< PrecompileShaderLighting (sk_sp< PrecompileShader > wrapped)
 
sk_sp< PrecompileShaderMatrixConvolution (sk_sp< PrecompileShader > wrapped)
 
sk_sp< PrecompileShaderLinearMorphology (sk_sp< PrecompileShader > wrapped)
 
sk_sp< PrecompileShaderSparseMorphology (sk_sp< PrecompileShader > wrapped)
 
sk_sp< PrecompileShaderCTM (SkSpan< const sk_sp< PrecompileShader > > wrapped)
 
sk_sp< PrecompileShaderImage (SkEnumBitMask< PrecompileImageShaderFlags >)
 
sk_sp< PrecompileShaderRawImage (SkEnumBitMask< PrecompileImageShaderFlags >)
 
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 wrapped)

Definition at line 884 of file PrecompileShader.cpp.

884 {
885 return sk_make_sp<PrecompileBlurShader>(std::move(wrapped));
886}
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 831 of file PrecompileShader.cpp.

831 {
832 return sk_make_sp<PrecompileCTMShader>(std::move(wrapped));
833}

◆ Displacement()

sk_sp< PrecompileShader > skgpu::graphite::PrecompileShadersPriv::Displacement ( sk_sp< PrecompileShader displacement,
sk_sp< PrecompileShader color 
)

Definition at line 1054 of file PrecompileShader.cpp.

1055 {
1056 return sk_make_sp<PrecompileDisplacementShader>(std::move(displacement), std::move(color));
1057}
DlColor color

◆ Image()

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

Definition at line 432 of file PrecompileShader.cpp.

433 {
434 return PrecompileShaders::LocalMatrix({ sk_make_sp<PrecompileImageShader>(flags) });
435}
FlutterSemanticsFlag flags
SK_API sk_sp< PrecompileShader > LocalMatrix(SkSpan< const sk_sp< PrecompileShader > > wrapped)

◆ Lighting()

sk_sp< PrecompileShader > skgpu::graphite::PrecompileShadersPriv::Lighting ( sk_sp< PrecompileShader wrapped)

Definition at line 1096 of file PrecompileShader.cpp.

1096 {
1097 return sk_make_sp<PrecompileLightingShader>(std::move(wrapped));
1098}

◆ LinearMorphology()

sk_sp< PrecompileShader > skgpu::graphite::PrecompileShadersPriv::LinearMorphology ( sk_sp< PrecompileShader wrapped)

Definition at line 998 of file PrecompileShader.cpp.

998 {
999 return sk_make_sp<PrecompileMorphologyShader>(
1000 std::move(wrapped),
1001 SkKnownRuntimeEffects::StableKey::kLinearMorphology);
1002}

◆ LocalMatrixBothVariants()

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

Definition at line 664 of file PrecompileShader.cpp.

665 {
666 return sk_make_sp<PrecompileLocalMatrixShader>(
667 std::move(wrapped),
668 PrecompileLocalMatrixShader::Flags::kIncludeWithOutVariant);
669}

◆ MatrixConvolution()

sk_sp< PrecompileShader > skgpu::graphite::PrecompileShadersPriv::MatrixConvolution ( sk_sp< PrecompileShader wrapped)

Definition at line 958 of file PrecompileShader.cpp.

959 {
960 return sk_make_sp<PrecompileMatrixConvolutionShader>(std::move(wrapped));
961}

◆ Picture()

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

Definition at line 558 of file PrecompileShader.cpp.

558 {
560 if (withLM) {
561 return PrecompileShaders::LocalMatrix({ std::move(s) });
562 }
563 return s;
564}
struct MyStruct s
CanvasImage Image
Definition: dart_ui.cc:55

◆ RawImage()

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

Definition at line 437 of file PrecompileShader.cpp.

438 {
440 { sk_make_sp<PrecompileImageShader>(flags |
441 PrecompileImageShaderFlags::kExcludeAlpha) });
442}

◆ SparseMorphology()

sk_sp< PrecompileShader > skgpu::graphite::PrecompileShadersPriv::SparseMorphology ( sk_sp< PrecompileShader wrapped)

Definition at line 1004 of file PrecompileShader.cpp.

1004 {
1005 return sk_make_sp<PrecompileMorphologyShader>(
1006 std::move(wrapped),
1007 SkKnownRuntimeEffects::StableKey::kSparseMorphology);
1008}