Home
last modified time | relevance | path

Searched refs:GrFragmentProcessor (Results 1 – 25 of 441) sorted by relevance

12345678910>>...18

/external/skia/src/gpu/
DGrFragmentProcessor.cpp22 bool GrFragmentProcessor::isEqual(const GrFragmentProcessor& that) const { in isEqual()
51 void GrFragmentProcessor::visitProxies(const GrOp::VisitProxyFunc& func) { in visitProxies()
58 GrGLSLFragmentProcessor* GrFragmentProcessor::createGLSLInstance() const { in createGLSLInstance()
67 const GrFragmentProcessor::TextureSampler& GrFragmentProcessor::textureSampler(int i) const { in textureSampler()
72 void GrFragmentProcessor::addCoordTransform(GrCoordTransform* transform) { in addCoordTransform()
78 bool GrFragmentProcessor::isInstantiated() const { in isInstantiated()
95 int GrFragmentProcessor::registerChildProcessor(std::unique_ptr<GrFragmentProcessor> child) { in registerChildProcessor()
107 bool GrFragmentProcessor::hasSameTransforms(const GrFragmentProcessor& that) const { in hasSameTransforms()
120 std::unique_ptr<GrFragmentProcessor> GrFragmentProcessor::MulChildByInputAlpha( in MulChildByInputAlpha()
121 std::unique_ptr<GrFragmentProcessor> fp) { in MulChildByInputAlpha()
[all …]
DGrFragmentProcessor.h27 class GrFragmentProcessor : public GrProcessor {
39 static std::unique_ptr<GrFragmentProcessor> MulChildByInputAlpha(
40 std::unique_ptr<GrFragmentProcessor> child);
48 static std::unique_ptr<GrFragmentProcessor> MulInputByChildAlpha(
49 std::unique_ptr<GrFragmentProcessor> child);
57 static std::unique_ptr<GrFragmentProcessor> MakeInputPremulAndMulByOutput(
58 std::unique_ptr<GrFragmentProcessor>);
65 static std::unique_ptr<GrFragmentProcessor> OverrideInput(std::unique_ptr<GrFragmentProcessor>,
73 static std::unique_ptr<GrFragmentProcessor> PremulInput(std::unique_ptr<GrFragmentProcessor>);
79 static std::unique_ptr<GrFragmentProcessor> SwizzleOutput(std::unique_ptr<GrFragmentProcessor>,
[all …]
DGrColorSpaceXform.h60 class GrColorSpaceXformEffect : public GrFragmentProcessor {
65 static std::unique_ptr<GrFragmentProcessor> Make(SkColorSpace* src, SkAlphaType srcAT,
72 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> child,
80 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> child,
84 std::unique_ptr<GrFragmentProcessor> clone() const override;
89 GrColorSpaceXformEffect(std::unique_ptr<GrFragmentProcessor> child,
92 static OptimizationFlags OptFlags(const GrFragmentProcessor* child);
97 bool onIsEqual(const GrFragmentProcessor&) const override;
101 typedef GrFragmentProcessor INHERITED;
DGrColorSpaceXform.cpp83 const GrFragmentProcessor& processor) override { in onSetData()
95 GrColorSpaceXformEffect::GrColorSpaceXformEffect(std::unique_ptr<GrFragmentProcessor> child, in GrColorSpaceXformEffect()
104 std::unique_ptr<GrFragmentProcessor> GrColorSpaceXformEffect::clone() const { in clone()
105 std::unique_ptr<GrFragmentProcessor> child = in clone()
107 return std::unique_ptr<GrFragmentProcessor>( in clone()
111 bool GrColorSpaceXformEffect::onIsEqual(const GrFragmentProcessor& s) const { in onIsEqual()
125 GrFragmentProcessor::OptimizationFlags GrColorSpaceXformEffect::OptFlags( in OptFlags()
126 const GrFragmentProcessor* child) { in OptFlags()
154 std::unique_ptr<GrFragmentProcessor> GrColorSpaceXformEffect::Make(SkColorSpace* src, in Make()
164 return std::unique_ptr<GrFragmentProcessor>(new GrColorSpaceXformEffect(nullptr, in Make()
[all …]
/external/skqp/src/gpu/
DGrFragmentProcessor.cpp20 bool GrFragmentProcessor::isEqual(const GrFragmentProcessor& that) const { in isEqual()
49 void GrFragmentProcessor::visitProxies(const std::function<void(GrSurfaceProxy*)>& func) { in visitProxies()
50 GrFragmentProcessor::TextureAccessIter iter(this); in visitProxies()
56 GrGLSLFragmentProcessor* GrFragmentProcessor::createGLSLInstance() const { in createGLSLInstance()
65 const GrFragmentProcessor::TextureSampler& GrFragmentProcessor::textureSampler(int i) const { in textureSampler()
70 void GrFragmentProcessor::addCoordTransform(const GrCoordTransform* transform) { in addCoordTransform()
76 bool GrFragmentProcessor::instantiate(GrResourceProvider* resourceProvider) const { in instantiate()
92 void GrFragmentProcessor::markPendingExecution() const { in markPendingExecution()
103 int GrFragmentProcessor::registerChildProcessor(std::unique_ptr<GrFragmentProcessor> child) { in registerChildProcessor()
114 bool GrFragmentProcessor::hasSameTransforms(const GrFragmentProcessor& that) const { in hasSameTransforms()
[all …]
DGrFragmentProcessor.h27 class GrFragmentProcessor : public GrProcessor {
39 static std::unique_ptr<GrFragmentProcessor> MulChildByInputAlpha(
40 std::unique_ptr<GrFragmentProcessor> child);
48 static std::unique_ptr<GrFragmentProcessor> MulInputByChildAlpha(
49 std::unique_ptr<GrFragmentProcessor> child);
57 static std::unique_ptr<GrFragmentProcessor> MakeInputPremulAndMulByOutput(
58 std::unique_ptr<GrFragmentProcessor>);
65 static std::unique_ptr<GrFragmentProcessor> OverrideInput(std::unique_ptr<GrFragmentProcessor>,
72 static std::unique_ptr<GrFragmentProcessor> PremulInput(std::unique_ptr<GrFragmentProcessor>);
78 static std::unique_ptr<GrFragmentProcessor> SwizzleOutput(std::unique_ptr<GrFragmentProcessor>,
[all …]
DGrColorSpaceXform.h48 class GrColorSpaceXformEffect : public GrFragmentProcessor {
53 static std::unique_ptr<GrFragmentProcessor> Make(SkColorSpace* src, SkAlphaType srcAT,
60 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> child,
68 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> child,
72 std::unique_ptr<GrFragmentProcessor> clone() const override;
77 GrColorSpaceXformEffect(std::unique_ptr<GrFragmentProcessor> child,
80 static OptimizationFlags OptFlags(const GrFragmentProcessor* child);
84 bool onIsEqual(const GrFragmentProcessor&) const override;
88 typedef GrFragmentProcessor INHERITED;
DGrColorSpaceXform.cpp84 const GrFragmentProcessor& processor) override { in onSetData()
96 GrColorSpaceXformEffect::GrColorSpaceXformEffect(std::unique_ptr<GrFragmentProcessor> child, in GrColorSpaceXformEffect()
105 std::unique_ptr<GrFragmentProcessor> GrColorSpaceXformEffect::clone() const { in clone()
106 std::unique_ptr<GrFragmentProcessor> child = in clone()
108 return std::unique_ptr<GrFragmentProcessor>( in clone()
112 bool GrColorSpaceXformEffect::onIsEqual(const GrFragmentProcessor& s) const { in onIsEqual()
126 GrFragmentProcessor::OptimizationFlags GrColorSpaceXformEffect::OptFlags( in OptFlags()
127 const GrFragmentProcessor* child) { in OptFlags()
144 std::unique_ptr<GrFragmentProcessor> GrColorSpaceXformEffect::Make(SkColorSpace* src, in Make()
154 return std::unique_ptr<GrFragmentProcessor>(new GrColorSpaceXformEffect(nullptr, in Make()
[all …]
/external/skia/src/gpu/effects/generated/
DGrComposeLerpRedEffect.h18 class GrComposeLerpRedEffect : public GrFragmentProcessor {
20 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> child1, in Make()
21 std::unique_ptr<GrFragmentProcessor> child2, in Make()
22 std::unique_ptr<GrFragmentProcessor> lerp) { in Make()
23 return std::unique_ptr<GrFragmentProcessor>( in Make()
27 std::unique_ptr<GrFragmentProcessor> clone() const override;
34 GrComposeLerpRedEffect(std::unique_ptr<GrFragmentProcessor> child1, in GrComposeLerpRedEffect()
35 std::unique_ptr<GrFragmentProcessor> child2, in GrComposeLerpRedEffect()
36 std::unique_ptr<GrFragmentProcessor> lerp) in GrComposeLerpRedEffect()
52 bool onIsEqual(const GrFragmentProcessor&) const override;
[all …]
DGrMixerEffect.h18 class GrMixerEffect : public GrFragmentProcessor {
20 static OptimizationFlags OptFlags(const std::unique_ptr<GrFragmentProcessor>& fp0, in OptFlags()
21 const std::unique_ptr<GrFragmentProcessor>& fp1) { in OptFlags()
37 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> fp0, in Make()
38 std::unique_ptr<GrFragmentProcessor> in Make()
41 return std::unique_ptr<GrFragmentProcessor>( in Make()
45 std::unique_ptr<GrFragmentProcessor> clone() const override;
52 GrMixerEffect(std::unique_ptr<GrFragmentProcessor> fp0, in GrMixerEffect()
53 std::unique_ptr<GrFragmentProcessor> in GrMixerEffect()
68 bool onIsEqual(const GrFragmentProcessor&) const override;
[all …]
DGrComposeLerpEffect.h18 class GrComposeLerpEffect : public GrFragmentProcessor {
20 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> child1, in Make()
21 std::unique_ptr<GrFragmentProcessor> child2, in Make()
23 return std::unique_ptr<GrFragmentProcessor>( in Make()
27 std::unique_ptr<GrFragmentProcessor> clone() const override;
34 GrComposeLerpEffect(std::unique_ptr<GrFragmentProcessor> child1, in GrComposeLerpEffect()
35 std::unique_ptr<GrFragmentProcessor> child2, float weight) in GrComposeLerpEffect()
48 bool onIsEqual(const GrFragmentProcessor&) const override;
50 typedef GrFragmentProcessor INHERITED;
DGrOverrideInputFragmentProcessor.h18 class GrOverrideInputFragmentProcessor : public GrFragmentProcessor {
20 static OptimizationFlags OptFlags(const std::unique_ptr<GrFragmentProcessor>& fp, in OptFlags()
37 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> fp,
40 return std::unique_ptr<GrFragmentProcessor>(
44 std::unique_ptr<GrFragmentProcessor> clone() const override;
52 GrOverrideInputFragmentProcessor(std::unique_ptr<GrFragmentProcessor> fp, in GrOverrideInputFragmentProcessor()
67 bool onIsEqual(const GrFragmentProcessor&) const override;
69 typedef GrFragmentProcessor INHERITED;
/external/skia/src/gpu/effects/
DGrXfermodeFragmentProcessor.cpp30 class ComposeTwoFragmentProcessor : public GrFragmentProcessor {
32 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> src, in Make()
33 std::unique_ptr<GrFragmentProcessor> dst, in Make()
35 return std::unique_ptr<GrFragmentProcessor>( in Make()
55 std::unique_ptr<GrFragmentProcessor> clone() const override;
60 ComposeTwoFragmentProcessor(std::unique_ptr<GrFragmentProcessor> src, in ComposeTwoFragmentProcessor()
61 std::unique_ptr<GrFragmentProcessor> dst, in ComposeTwoFragmentProcessor()
71 static OptimizationFlags OptFlags(const GrFragmentProcessor* src, in OptFlags()
72 const GrFragmentProcessor* dst, SkBlendMode mode) { in OptFlags()
146 bool onIsEqual(const GrFragmentProcessor& other) const override { in onIsEqual()
[all …]
DGrXfermodeFragmentProcessor.h14 class GrFragmentProcessor; variable
20 std::unique_ptr<GrFragmentProcessor> MakeFromDstProcessor(std::unique_ptr<GrFragmentProcessor> dst,
25 std::unique_ptr<GrFragmentProcessor> MakeFromSrcProcessor(std::unique_ptr<GrFragmentProcessor> src,
31 std::unique_ptr<GrFragmentProcessor> MakeFromTwoProcessors(std::unique_ptr<GrFragmentProcessor> src,
32 std::unique_ptr<GrFragmentProcessor> dst,
DGrBicubicEffect.h16 class GrBicubicEffect : public GrFragmentProcessor {
34 std::unique_ptr<GrFragmentProcessor> clone() const override { in clone()
35 return std::unique_ptr<GrFragmentProcessor>(new GrBicubicEffect(*this)); in clone()
41 static std::unique_ptr<GrFragmentProcessor> Make(GrSurfaceProxyView view,
49 static std::unique_ptr<GrFragmentProcessor> Make(GrSurfaceProxyView view,
61 static std::unique_ptr<GrFragmentProcessor> MakeSubset(GrSurfaceProxyView view,
87 GrBicubicEffect(std::unique_ptr<GrFragmentProcessor> fp, Direction direction, Clamp clamp);
94 bool onIsEqual(const GrFragmentProcessor&) const override;
102 typedef GrFragmentProcessor INHERITED;
/external/skqp/src/gpu/effects/
DGrXfermodeFragmentProcessor.cpp30 class ComposeTwoFragmentProcessor : public GrFragmentProcessor {
32 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> src, in Make()
33 std::unique_ptr<GrFragmentProcessor> dst, in Make()
35 return std::unique_ptr<GrFragmentProcessor>( in Make()
55 std::unique_ptr<GrFragmentProcessor> clone() const override;
60 ComposeTwoFragmentProcessor(std::unique_ptr<GrFragmentProcessor> src, in ComposeTwoFragmentProcessor()
61 std::unique_ptr<GrFragmentProcessor> dst, in ComposeTwoFragmentProcessor()
71 static OptimizationFlags OptFlags(const GrFragmentProcessor* src, in OptFlags()
72 const GrFragmentProcessor* dst, SkBlendMode mode) { in OptFlags()
146 bool onIsEqual(const GrFragmentProcessor& other) const override { in onIsEqual()
[all …]
DGrXfermodeFragmentProcessor.h14 class GrFragmentProcessor; variable
20 std::unique_ptr<GrFragmentProcessor> MakeFromDstProcessor(std::unique_ptr<GrFragmentProcessor> dst,
25 std::unique_ptr<GrFragmentProcessor> MakeFromSrcProcessor(std::unique_ptr<GrFragmentProcessor> src,
31 std::unique_ptr<GrFragmentProcessor> MakeFromTwoProcessors(std::unique_ptr<GrFragmentProcessor> src,
32 std::unique_ptr<GrFragmentProcessor> dst,
DGrSimpleTextureEffect.h16 class GrSimpleTextureEffect : public GrFragmentProcessor {
20 static std::unique_ptr<GrFragmentProcessor> Make(sk_sp<GrTextureProxy> proxy, in Make()
22 return std::unique_ptr<GrFragmentProcessor>( in Make()
29 static std::unique_ptr<GrFragmentProcessor> Make(sk_sp<GrTextureProxy> proxy, in Make()
32 return std::unique_ptr<GrFragmentProcessor>(new GrSimpleTextureEffect( in Make()
37 static std::unique_ptr<GrFragmentProcessor> Make(sk_sp<GrTextureProxy> proxy, in Make()
40 return std::unique_ptr<GrFragmentProcessor>( in Make()
44 std::unique_ptr<GrFragmentProcessor> clone() const override;
65 bool onIsEqual(const GrFragmentProcessor&) const override;
71 typedef GrFragmentProcessor INHERITED;
DGrBicubicEffect.h16 class GrBicubicEffect : public GrFragmentProcessor {
25 std::unique_ptr<GrFragmentProcessor> clone() const override { in clone()
26 return std::unique_ptr<GrFragmentProcessor>(new GrBicubicEffect(*this)); in clone()
34 static std::unique_ptr<GrFragmentProcessor> Make(sk_sp<GrTextureProxy> proxy, in Make()
48 static std::unique_ptr<GrFragmentProcessor> Make(sk_sp<GrTextureProxy> proxy, in Make()
53 return std::unique_ptr<GrFragmentProcessor>(new GrBicubicEffect(std::move(proxy), matrix, in Make()
60 static std::unique_ptr<GrFragmentProcessor> Make(sk_sp<GrTextureProxy> proxy, in Make()
63 return std::unique_ptr<GrFragmentProcessor>(new GrBicubicEffect(std::move(proxy), matrix, in Make()
88 bool onIsEqual(const GrFragmentProcessor&) const override;
98 typedef GrFragmentProcessor INHERITED;
/external/skqp/src/gpu/gradients/
DGrTiledGradientEffect.h16 class GrTiledGradientEffect : public GrFragmentProcessor {
21 static std::unique_ptr<GrFragmentProcessor> Make( in Make()
22 std::unique_ptr<GrFragmentProcessor> colorizer, in Make()
23 std::unique_ptr<GrFragmentProcessor> gradLayout, bool mirror, bool makePremul, in Make()
25 return std::unique_ptr<GrFragmentProcessor>(new GrTiledGradientEffect( in Make()
29 std::unique_ptr<GrFragmentProcessor> clone() const override;
33 GrTiledGradientEffect(std::unique_ptr<GrFragmentProcessor> colorizer, in GrTiledGradientEffect()
34 std::unique_ptr<GrFragmentProcessor> gradLayout, bool mirror, in GrTiledGradientEffect()
49 bool onIsEqual(const GrFragmentProcessor&) const override;
54 typedef GrFragmentProcessor INHERITED;
DGrClampedGradientEffect.h16 class GrClampedGradientEffect : public GrFragmentProcessor {
22 static std::unique_ptr<GrFragmentProcessor> Make( in Make()
23 std::unique_ptr<GrFragmentProcessor> colorizer, in Make()
24 std::unique_ptr<GrFragmentProcessor> gradLayout, SkPMColor4f leftBorderColor, in Make()
26 return std::unique_ptr<GrFragmentProcessor>(new GrClampedGradientEffect( in Make()
31 std::unique_ptr<GrFragmentProcessor> clone() const override;
35 GrClampedGradientEffect(std::unique_ptr<GrFragmentProcessor> colorizer, in GrClampedGradientEffect()
36 std::unique_ptr<GrFragmentProcessor> gradLayout, in GrClampedGradientEffect()
53 bool onIsEqual(const GrFragmentProcessor&) const override;
59 typedef GrFragmentProcessor INHERITED;
/external/skia/src/gpu/gradients/generated/
DGrTiledGradientEffect.h18 class GrTiledGradientEffect : public GrFragmentProcessor {
20 static std::unique_ptr<GrFragmentProcessor> Make( in Make()
21 std::unique_ptr<GrFragmentProcessor> colorizer, in Make()
22 std::unique_ptr<GrFragmentProcessor> gradLayout, bool mirror, bool makePremul, in Make()
24 return std::unique_ptr<GrFragmentProcessor>(new GrTiledGradientEffect( in Make()
28 std::unique_ptr<GrFragmentProcessor> clone() const override;
37 GrTiledGradientEffect(std::unique_ptr<GrFragmentProcessor> colorizer, in GrTiledGradientEffect()
38 std::unique_ptr<GrFragmentProcessor> gradLayout, bool mirror, in GrTiledGradientEffect()
57 bool onIsEqual(const GrFragmentProcessor&) const override;
59 typedef GrFragmentProcessor INHERITED;
DGrClampedGradientEffect.h18 class GrClampedGradientEffect : public GrFragmentProcessor {
20 static std::unique_ptr<GrFragmentProcessor> Make( in Make()
21 std::unique_ptr<GrFragmentProcessor> colorizer, in Make()
22 std::unique_ptr<GrFragmentProcessor> gradLayout, SkPMColor4f leftBorderColor, in Make()
24 return std::unique_ptr<GrFragmentProcessor>(new GrClampedGradientEffect( in Make()
29 std::unique_ptr<GrFragmentProcessor> clone() const override;
39 GrClampedGradientEffect(std::unique_ptr<GrFragmentProcessor> colorizer, in GrClampedGradientEffect()
40 std::unique_ptr<GrFragmentProcessor> gradLayout, in GrClampedGradientEffect()
61 bool onIsEqual(const GrFragmentProcessor&) const override;
63 typedef GrFragmentProcessor INHERITED;
/external/skqp/src/gpu/glsl/
DGrGLSLFragmentProcessor.h41 template <typename T, int (GrFragmentProcessor::*COUNT)() const>
44 BuilderInputProvider(const GrFragmentProcessor* fp, const T* ts) : fFP(fp) , fTs(ts) {} in BuilderInputProvider()
54 const GrFragmentProcessor* child = &fFP->childProcessor(childIdx); in childInputs()
55 GrFragmentProcessor::Iter iter(fFP); in childInputs()
58 const GrFragmentProcessor* fp = iter.next(); in childInputs()
67 const GrFragmentProcessor* fFP;
73 BuilderInputProvider<GrShaderVar, &GrFragmentProcessor::numCoordTransforms>;
75 BuilderInputProvider<SamplerHandle, &GrFragmentProcessor::numTextureSamplers>;
104 const GrFragmentProcessor& fp, in EmitArgs()
120 const GrFragmentProcessor& fFp;
[all …]
/external/skia/src/gpu/glsl/
DGrGLSLFragmentProcessor.h43 template <typename T, int (GrFragmentProcessor::*COUNT)() const>
46 BuilderInputProvider(const GrFragmentProcessor* fp, const T* ts) : fFP(fp) , fTs(ts) {} in BuilderInputProvider()
56 const GrFragmentProcessor* child = &fFP->childProcessor(childIdx); in childInputs()
58 for (const auto& fp : GrFragmentProcessor::FPCRange(*fFP)) { in childInputs()
69 const GrFragmentProcessor* fFP;
75 &GrFragmentProcessor::numCoordTransforms>;
77 BuilderInputProvider<SamplerHandle, &GrFragmentProcessor::numTextureSamplers>;
106 const GrFragmentProcessor& fp, in EmitArgs()
122 const GrFragmentProcessor& fFp;
133 void setData(const GrGLSLProgramDataManager& pdman, const GrFragmentProcessor& processor);
[all …]

12345678910>>...18