Home
last modified time | relevance | path

Searched refs:SampleUsage (Results 1 - 25 of 25) sorted by relevance

/third_party/skia/include/private/
H A DSkSLSampleUsage.h20 class SampleUsage { class
35 // Make a SampleUsage that corresponds to no sampling of the child at all
36 SampleUsage() = default;
38 SampleUsage(Kind kind, bool hasPerspective) : fKind(kind), fHasPerspective(hasPerspective) { in SampleUsage() function in SkSL::SampleUsage
45 static SampleUsage UniformMatrix(bool hasPerspective) { in UniformMatrix()
46 return SampleUsage(Kind::kUniformMatrix, hasPerspective); in UniformMatrix()
49 static SampleUsage Explicit() { in Explicit()
50 return SampleUsage(Kind::kExplicit, false); in Explicit()
53 static SampleUsage PassThrough() { in PassThrough()
54 return SampleUsage(Kin in PassThrough()
[all...]
/third_party/skia/src/sksl/
H A DSkSLSampleUsage.cpp14 SampleUsage SampleUsage::merge(const SampleUsage& other) { in merge()
15 // This function is only used when processing SkSL, to determine the combined SampleUsage for in merge()
26 std::string SampleUsage::constructor() const { in constructor()
31 case Kind::kNone: return "SkSL::SampleUsage()"; in constructor()
32 case Kind::kPassThrough: return "SkSL::SampleUsage::PassThrough()"; in constructor()
33 case Kind::kExplicit: return "SkSL::SampleUsage::Explicit()"; in constructor()
H A DSkSLAnalysis.cpp69 // Visitor that determines the merged SampleUsage for a given child in the program.
77 SampleUsage visit(const Program& program) { in visit()
78 fUsage = SampleUsage(); // reset to none in visit()
89 SampleUsage fUsage;
107 fUsage.merge(SampleUsage::PassThrough());
110 fUsage.merge(SampleUsage::Explicit());
114 fUsage.merge(SampleUsage::PassThrough());
309 SampleUsage Analysis::GetSampleUsage(const Program& program, in GetSampleUsage()
314 SampleUsage result = visitor.visit(program); in GetSampleUsage()
321 result.setKind(SampleUsage in GetSampleUsage()
[all...]
H A DSkSLAnalysis.h47 SampleUsage GetSampleUsage(const Program& program,
/third_party/skia/src/gpu/
H A DGrGeometryProcessor.cpp141 case SkSL::SampleUsage::Kind::kNone: in collectTransforms()
145 case SkSL::SampleUsage::Kind::kPassThrough: in collectTransforms()
147 case SkSL::SampleUsage::Kind::kUniformMatrix: in collectTransforms()
153 case SkSL::SampleUsage::Kind::kFragCoord: in collectTransforms()
159 case SkSL::SampleUsage::Kind::kExplicit: in collectTransforms()
240 *fp->parent(), SkString(SkSL::SampleUsage::MatrixUniformName())); in emitTransformCode()
262 *base->parent(), SkString(SkSL::SampleUsage::MatrixUniformName())); in emitTransformCode()
H A DGrFragmentProcessor.h245 // The SampleUsage describing how this FP is invoked by its parent. This only reflects the
247 const SkSL::SampleUsage& sampleUsage() const { in sampleUsage()
398 * The SampleUsage parameter describes all of the ways that the child is sampled by the parent.
401 SkSL::SampleUsage sampleUsage = SkSL::SampleUsage::PassThrough());
474 SkSL::SampleUsage fUsage;
612 * to the child's SampleUsage object. This is only valid if the child is sampled with a
H A DGrFragmentProcessor.cpp160 SkSL::SampleUsage sampleUsage) {
586 this->registerChild(std::move(fp), SkSL::SampleUsage::FragCoord());
986 args.fFp, SkString(SkSL::SampleUsage::MatrixUniformName()));
/third_party/skia/gm/
H A Dfp_sample_chaining.cpp32 SkSL::SampleUsage::UniformMatrix(/*hasPerspective=*/false)); in UniformMatrixEffect()
48 SkSL::SampleUsage::MatrixUniformName());
72 this->registerChild(std::move(child), SkSL::SampleUsage::Explicit()); in ExplicitCoordEffect()
H A Dfpcoordinateoverride.cpp39 this->registerChild(std::move(child), SkSL::SampleUsage::Explicit()); in SampleCoordEffect()
/third_party/protobuf/csharp/src/AddressBook/
H A DSampleUsage.cs38 internal class SampleUsage class
/third_party/skia/src/gpu/effects/
H A DGrMatrixEffect.h33 SkSL::SampleUsage::UniformMatrix(matrix.hasPerspective())); in GrMatrixEffect()
H A DGrMatrixEffect.cpp37 SkSL::SampleUsage::MatrixUniformName()); in onMakeProgramImpl()
H A DGrModulateAtlasCoverageEffect.cpp26 SkSL::SampleUsage::Explicit());
H A DGrMatrixConvolutionEffect.cpp284 this->registerChild(std::move(child), SkSL::SampleUsage::Explicit()); in GrMatrixConvolutionEffect()
285 this->registerChild(std::move(kernelFP), SkSL::SampleUsage::Explicit()); in GrMatrixConvolutionEffect()
H A DGrSkSLFP.cpp338 this->registerChild(std::move(input), SkSL::SampleUsage::PassThrough()); in setInput()
347 this->registerChild(std::move(destColorFP), SkSL::SampleUsage::PassThrough()); in setDestColorFP()
H A DGrGaussianConvolutionFragmentProcessor.cpp207 this->registerChild(std::move(child), SkSL::SampleUsage::Explicit());
H A DGrBicubicEffect.cpp207 this->registerChild(std::move(fp), SkSL::SampleUsage::Explicit()); in GrBicubicEffect()
H A DGrYUVtoRGBEffect.cpp218 this->registerChild(std::move(planeFPs[i]), SkSL::SampleUsage::Explicit()); in GrYUVtoRGBEffect()
/third_party/skia/include/effects/
H A DSkRuntimeEffect.h250 std::vector<SkSL::SampleUsage>&& sampleUsages,
290 std::vector<SkSL::SampleUsage> fSampleUsages;
/third_party/skia/src/effects/
H A DSkTableColorFilter.cpp153 SkSL::SampleUsage::Explicit()); in ColorTableEffect()
/third_party/skia/src/shaders/
H A DSkPerlinNoiseShader.cpp650 this->registerChild(std::move(permutationsFP), SkSL::SampleUsage::Explicit());
651 this->registerChild(std::move(noiseFP), SkSL::SampleUsage::Explicit());
/third_party/skia/src/core/
H A DSkRuntimeEffect.cpp309 std::vector<SkSL::SampleUsage> sampleUsages; in MakeInternal()
337 : SkSL::SampleUsage::PassThrough()); in MakeInternal()
513 std::vector<SkSL::SampleUsage>&& sampleUsages, in SkRuntimeEffect()
/third_party/skia/src/effects/imagefilters/
H A DSkDisplacementMapImageFilter.cpp480 this->registerChild(std::move(color), SkSL::SampleUsage::Explicit()); in GrDisplacementMapEffect()
H A DSkMorphologyImageFilter.cpp323 SkSL::SampleUsage::Explicit()); in GrMorphologyEffect()
H A DSkLightingImageFilter.cpp1656 this->registerChild(std::move(child), SkSL::SampleUsage::Explicit()); in LightingEffect()

Completed in 22 milliseconds