Home
last modified time | relevance | path

Searched refs:drawEffect (Results 1 – 25 of 67) sorted by relevance

123

/external/skia/src/gpu/gl/
DGrGLProgramEffects.cpp94 void get_transform_translation(const GrDrawEffect& drawEffect, in get_transform_translation() argument
98 const GrCoordTransform& coordTransform = (*drawEffect.effect())->coordTransform(transformIdx); in get_transform_translation()
102 !drawEffect.programHasExplicitLocalCoords()) { in get_transform_translation()
103 const SkMatrix& coordChangeMatrix = drawEffect.getCoordChangeMatrix(); in get_transform_translation()
117 SkMatrix get_transform_matrix(const GrDrawEffect& drawEffect, int transformIdx) { in get_transform_matrix() argument
118 const GrCoordTransform& coordTransform = (*drawEffect.effect())->coordTransform(transformIdx); in get_transform_matrix()
121 !drawEffect.programHasExplicitLocalCoords()) { in get_transform_matrix()
122 combined.setConcat(coordTransform.getMatrix(), drawEffect.getCoordChangeMatrix()); in get_transform_matrix()
143 EffectKey GrGLProgramEffects::GenAttribKey(const GrDrawEffect& drawEffect) { in GenAttribKey() argument
145 int numAttributes = drawEffect.getVertexAttribIndexCount(); in GenAttribKey()
[all …]
DGrGLVertexEffect.h28 const GrDrawEffect& drawEffect,
39 const GrDrawEffect& drawEffect, in emitCode() argument
/external/chromium_org/third_party/skia/src/gpu/gl/
DGrGLProgramEffects.cpp94 void get_transform_translation(const GrDrawEffect& drawEffect, in get_transform_translation() argument
98 const GrCoordTransform& coordTransform = (*drawEffect.effect())->coordTransform(transformIdx); in get_transform_translation()
102 !drawEffect.programHasExplicitLocalCoords()) { in get_transform_translation()
103 const SkMatrix& coordChangeMatrix = drawEffect.getCoordChangeMatrix(); in get_transform_translation()
117 SkMatrix get_transform_matrix(const GrDrawEffect& drawEffect, int transformIdx) { in get_transform_matrix() argument
118 const GrCoordTransform& coordTransform = (*drawEffect.effect())->coordTransform(transformIdx); in get_transform_matrix()
121 !drawEffect.programHasExplicitLocalCoords()) { in get_transform_matrix()
122 combined.setConcat(coordTransform.getMatrix(), drawEffect.getCoordChangeMatrix()); in get_transform_matrix()
143 EffectKey GrGLProgramEffects::GenAttribKey(const GrDrawEffect& drawEffect) { in GenAttribKey() argument
145 int numAttributes = drawEffect.getVertexAttribIndexCount(); in GenAttribKey()
[all …]
DGrGLVertexEffect.h28 const GrDrawEffect& drawEffect,
39 const GrDrawEffect& drawEffect, in emitCode() argument
/external/skia/src/gpu/effects/
DGrBezierEffect.cpp20 const GrDrawEffect& drawEffect,
38 const GrDrawEffect& drawEffect) in GrGLConicEffect() argument
40 const GrConicEffect& ce = drawEffect.castEffect<GrConicEffect>(); in GrGLConicEffect()
45 const GrDrawEffect& drawEffect, in emitCode() argument
56 builder->getEffectAttributeName(drawEffect.getVertexAttribIndices()[0]); in emitCode()
117 GrGLEffect::EffectKey GrGLConicEffect::GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) { in GenKey() argument
118 const GrConicEffect& ce = drawEffect.castEffect<GrConicEffect>(); in GenKey()
161 const GrDrawEffect& drawEffect,
179 const GrDrawEffect& drawEffect) in GrGLQuadEffect() argument
181 const GrQuadEffect& ce = drawEffect.castEffect<GrQuadEffect>(); in GrGLQuadEffect()
[all …]
DGrCustomCoordsTextureEffect.cpp18 …rGLCustomCoordsTextureEffect(const GrBackendEffectFactory& factory, const GrDrawEffect& drawEffect) in GrGLCustomCoordsTextureEffect() argument
22 const GrDrawEffect& drawEffect, in emitCode() argument
28 SkASSERT(1 == drawEffect.castEffect<GrCustomCoordsTextureEffect>().numVertexAttribs()); in emitCode()
37 builder->getEffectAttributeName(drawEffect.getVertexAttribIndices()[0])->c_str(); in emitCode()
49 const GrDrawEffect& drawEffect) SK_OVERRIDE {} in setData() argument
DGrDistanceFieldTextureEffect.cpp22 …GLDistanceFieldTextureEffect(const GrBackendEffectFactory& factory, const GrDrawEffect& drawEffect) in GrGLDistanceFieldTextureEffect() argument
26 const GrDrawEffect& drawEffect, in emitCode() argument
32 SkASSERT(1 == drawEffect.castEffect<GrDistanceFieldTextureEffect>().numVertexAttribs()); in emitCode()
41 builder->getEffectAttributeName(drawEffect.getVertexAttribIndices()[0])->c_str(); in emitCode()
60 const GrDrawEffect& drawEffect) SK_OVERRIDE {} in setData() argument
DGrConvolutionEffect.cpp49 const GrDrawEffect& drawEffect) in GrGLConvolutionEffect() argument
51 const GrConvolutionEffect& c = drawEffect.castEffect<GrConvolutionEffect>(); in GrGLConvolutionEffect()
106 const GrDrawEffect& drawEffect) { in setData() argument
107 const GrConvolutionEffect& conv = drawEffect.castEffect<GrConvolutionEffect>(); in setData()
136 GrGLEffect::EffectKey GrGLConvolutionEffect::GenKey(const GrDrawEffect& drawEffect, in GenKey() argument
138 const GrConvolutionEffect& conv = drawEffect.castEffect<GrConvolutionEffect>(); in GenKey()
DGrTextureDomain.cpp170 const GrDrawEffect& drawEffect, in emitCode() argument
176 const GrTextureDomainEffect& effect = drawEffect.castEffect<GrTextureDomainEffect>(); in emitCode()
184 const GrDrawEffect& drawEffect) { in setData() argument
185 const GrTextureDomainEffect& effect = drawEffect.castEffect<GrTextureDomainEffect>(); in setData()
190 GrGLEffect::EffectKey GrGLTextureDomainEffect::GenKey(const GrDrawEffect& drawEffect, in GenKey() argument
192 const GrTextureDomain& domain = drawEffect.castEffect<GrTextureDomainEffect>().textureDomain(); in GenKey()
/external/chromium_org/third_party/skia/src/gpu/effects/
DGrBezierEffect.cpp20 const GrDrawEffect& drawEffect,
38 const GrDrawEffect& drawEffect) in GrGLConicEffect() argument
40 const GrConicEffect& ce = drawEffect.castEffect<GrConicEffect>(); in GrGLConicEffect()
45 const GrDrawEffect& drawEffect, in emitCode() argument
56 builder->getEffectAttributeName(drawEffect.getVertexAttribIndices()[0]); in emitCode()
117 GrGLEffect::EffectKey GrGLConicEffect::GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) { in GenKey() argument
118 const GrConicEffect& ce = drawEffect.castEffect<GrConicEffect>(); in GenKey()
161 const GrDrawEffect& drawEffect,
179 const GrDrawEffect& drawEffect) in GrGLQuadEffect() argument
181 const GrQuadEffect& ce = drawEffect.castEffect<GrQuadEffect>(); in GrGLQuadEffect()
[all …]
DGrCustomCoordsTextureEffect.cpp18 …rGLCustomCoordsTextureEffect(const GrBackendEffectFactory& factory, const GrDrawEffect& drawEffect) in GrGLCustomCoordsTextureEffect() argument
22 const GrDrawEffect& drawEffect, in emitCode() argument
28 SkASSERT(1 == drawEffect.castEffect<GrCustomCoordsTextureEffect>().numVertexAttribs()); in emitCode()
37 builder->getEffectAttributeName(drawEffect.getVertexAttribIndices()[0])->c_str(); in emitCode()
49 const GrDrawEffect& drawEffect) SK_OVERRIDE {} in setData() argument
DGrDistanceFieldTextureEffect.cpp22 …GLDistanceFieldTextureEffect(const GrBackendEffectFactory& factory, const GrDrawEffect& drawEffect) in GrGLDistanceFieldTextureEffect() argument
26 const GrDrawEffect& drawEffect, in emitCode() argument
32 SkASSERT(1 == drawEffect.castEffect<GrDistanceFieldTextureEffect>().numVertexAttribs()); in emitCode()
41 builder->getEffectAttributeName(drawEffect.getVertexAttribIndices()[0])->c_str(); in emitCode()
60 const GrDrawEffect& drawEffect) SK_OVERRIDE {} in setData() argument
DGrConvolutionEffect.cpp49 const GrDrawEffect& drawEffect) in GrGLConvolutionEffect() argument
51 const GrConvolutionEffect& c = drawEffect.castEffect<GrConvolutionEffect>(); in GrGLConvolutionEffect()
106 const GrDrawEffect& drawEffect) { in setData() argument
107 const GrConvolutionEffect& conv = drawEffect.castEffect<GrConvolutionEffect>(); in setData()
136 GrGLEffect::EffectKey GrGLConvolutionEffect::GenKey(const GrDrawEffect& drawEffect, in GenKey() argument
138 const GrConvolutionEffect& conv = drawEffect.castEffect<GrConvolutionEffect>(); in GenKey()
DGrTextureDomain.cpp170 const GrDrawEffect& drawEffect, in emitCode() argument
176 const GrTextureDomainEffect& effect = drawEffect.castEffect<GrTextureDomainEffect>(); in emitCode()
184 const GrDrawEffect& drawEffect) { in setData() argument
185 const GrTextureDomainEffect& effect = drawEffect.castEffect<GrTextureDomainEffect>(); in setData()
190 GrGLEffect::EffectKey GrGLTextureDomainEffect::GenKey(const GrDrawEffect& drawEffect, in GenKey() argument
192 const GrTextureDomain& domain = drawEffect.castEffect<GrTextureDomainEffect>().textureDomain(); in GenKey()
DGrConfigConversionEffect.cpp18 const GrDrawEffect& drawEffect) in GrGLConfigConversionEffect() argument
20 const GrConfigConversionEffect& effect = drawEffect.castEffect<GrConfigConversionEffect>(); in GrGLConfigConversionEffect()
73 static inline EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) { in GenKey() argument
74 const GrConfigConversionEffect& conv = drawEffect.castEffect<GrConfigConversionEffect>(); in GenKey()
/external/skia/include/gpu/
DGrTBackendEffectFactory.h34 virtual EffectKey glEffectKey(const GrDrawEffect& drawEffect, in glEffectKey() argument
37 EffectKey effectKey = GLEffect::GenKey(drawEffect, caps); in glEffectKey()
38 EffectKey textureKey = GrGLProgramEffects::GenTextureKey(drawEffect, caps); in glEffectKey()
39 EffectKey transformKey = GrGLProgramEffects::GenTransformKey(drawEffect); in glEffectKey()
40 EffectKey attribKey = GrGLProgramEffects::GenAttribKey(drawEffect); in glEffectKey()
67 virtual GLEffect* createGLInstance(const GrDrawEffect& drawEffect) const SK_OVERRIDE { in createGLInstance() argument
68 return SkNEW_ARGS(GLEffect, (*this, drawEffect)); in createGLInstance()
/external/chromium_org/third_party/skia/include/gpu/
DGrTBackendEffectFactory.h34 virtual EffectKey glEffectKey(const GrDrawEffect& drawEffect, in glEffectKey() argument
37 EffectKey effectKey = GLEffect::GenKey(drawEffect, caps); in glEffectKey()
38 EffectKey textureKey = GrGLProgramEffects::GenTextureKey(drawEffect, caps); in glEffectKey()
39 EffectKey transformKey = GrGLProgramEffects::GenTransformKey(drawEffect); in glEffectKey()
40 EffectKey attribKey = GrGLProgramEffects::GenAttribKey(drawEffect); in glEffectKey()
67 virtual GLEffect* createGLInstance(const GrDrawEffect& drawEffect) const SK_OVERRIDE { in createGLInstance() argument
68 return SkNEW_ARGS(GLEffect, (*this, drawEffect)); in createGLInstance()
/external/chromium_org/third_party/skia/src/effects/
DSkPerlinNoiseShader.cpp512 const GrDrawEffect& drawEffect);
534 const GrDrawEffect& drawEffect) in GrGLPerlinNoise() argument
535 : GrGLNoise(factory, drawEffect) {} in GrGLPerlinNoise()
558 const GrDrawEffect& drawEffect) in GrGLSimplexNoise() argument
559 : GrGLNoise(factory, drawEffect) {} in GrGLSimplexNoise()
1232 GrGLNoise::GrGLNoise(const GrBackendEffectFactory& factory, const GrDrawEffect& drawEffect) in GrGLNoise() argument
1234 , fType(drawEffect.castEffect<GrPerlinNoiseEffect>().type()) in GrGLNoise()
1235 , fStitchTiles(drawEffect.castEffect<GrPerlinNoiseEffect>().stitchTiles()) in GrGLNoise()
1236 , fNumOctaves(drawEffect.castEffect<GrPerlinNoiseEffect>().numOctaves()) { in GrGLNoise()
1239 GrGLEffect::EffectKey GrGLNoise::GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) { in GenKey() argument
[all …]
DSkDisplacementMapEffect.cpp236 const GrDrawEffect& drawEffect);
441 const GrDrawEffect& drawEffect) in GrGLDisplacementMapEffect() argument
443 , fXChannelSelector(drawEffect.castEffect<GrDisplacementMapEffect>().xChannelSelector()) in GrGLDisplacementMapEffect()
444 , fYChannelSelector(drawEffect.castEffect<GrDisplacementMapEffect>().yChannelSelector()) { in GrGLDisplacementMapEffect()
528 const GrDrawEffect& drawEffect) { in setData() argument
530 drawEffect.castEffect<GrDisplacementMapEffect>(); in setData()
539 GrGLEffect::EffectKey GrGLDisplacementMapEffect::GenKey(const GrDrawEffect& drawEffect, in GenKey() argument
542 drawEffect.castEffect<GrDisplacementMapEffect>(); in GenKey()
/external/skia/src/effects/
DSkPerlinNoiseShader.cpp512 const GrDrawEffect& drawEffect);
534 const GrDrawEffect& drawEffect) in GrGLPerlinNoise() argument
535 : GrGLNoise(factory, drawEffect) {} in GrGLPerlinNoise()
558 const GrDrawEffect& drawEffect) in GrGLSimplexNoise() argument
559 : GrGLNoise(factory, drawEffect) {} in GrGLSimplexNoise()
1232 GrGLNoise::GrGLNoise(const GrBackendEffectFactory& factory, const GrDrawEffect& drawEffect) in GrGLNoise() argument
1234 , fType(drawEffect.castEffect<GrPerlinNoiseEffect>().type()) in GrGLNoise()
1235 , fStitchTiles(drawEffect.castEffect<GrPerlinNoiseEffect>().stitchTiles()) in GrGLNoise()
1236 , fNumOctaves(drawEffect.castEffect<GrPerlinNoiseEffect>().numOctaves()) { in GrGLNoise()
1239 GrGLEffect::EffectKey GrGLNoise::GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) { in GenKey() argument
[all …]
DSkDisplacementMapEffect.cpp236 const GrDrawEffect& drawEffect);
441 const GrDrawEffect& drawEffect) in GrGLDisplacementMapEffect() argument
443 , fXChannelSelector(drawEffect.castEffect<GrDisplacementMapEffect>().xChannelSelector()) in GrGLDisplacementMapEffect()
444 , fYChannelSelector(drawEffect.castEffect<GrDisplacementMapEffect>().yChannelSelector()) { in GrGLDisplacementMapEffect()
528 const GrDrawEffect& drawEffect) { in setData() argument
530 drawEffect.castEffect<GrDisplacementMapEffect>(); in setData()
539 GrGLEffect::EffectKey GrGLDisplacementMapEffect::GenKey(const GrDrawEffect& drawEffect, in GenKey() argument
542 drawEffect.castEffect<GrDisplacementMapEffect>(); in GenKey()
/external/chromium_org/third_party/skia/src/gpu/
DGrOvalRenderer.cpp96 const GrDrawEffect& drawEffect, in emitCode() argument
102 const CircleEdgeEffect& circleEffect = drawEffect.castEffect<CircleEdgeEffect>(); in emitCode()
107 builder->getEffectAttributeName(drawEffect.getVertexAttribIndices()[0]); in emitCode()
121 static inline EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) { in GenKey() argument
122 const CircleEdgeEffect& circleEffect = drawEffect.castEffect<CircleEdgeEffect>(); in GenKey()
207 const GrDrawEffect& drawEffect, in emitCode() argument
213 const EllipseEdgeEffect& ellipseEffect = drawEffect.castEffect<EllipseEdgeEffect>(); in emitCode()
220 builder->getEffectAttributeName(drawEffect.getVertexAttribIndices()[0]); in emitCode()
225 builder->getEffectAttributeName(drawEffect.getVertexAttribIndices()[1]); in emitCode()
253 static inline EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) { in GenKey() argument
[all …]
/external/skia/src/gpu/
DGrOvalRenderer.cpp96 const GrDrawEffect& drawEffect, in emitCode() argument
102 const CircleEdgeEffect& circleEffect = drawEffect.castEffect<CircleEdgeEffect>(); in emitCode()
107 builder->getEffectAttributeName(drawEffect.getVertexAttribIndices()[0]); in emitCode()
121 static inline EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) { in GenKey() argument
122 const CircleEdgeEffect& circleEffect = drawEffect.castEffect<CircleEdgeEffect>(); in GenKey()
207 const GrDrawEffect& drawEffect, in emitCode() argument
213 const EllipseEdgeEffect& ellipseEffect = drawEffect.castEffect<EllipseEdgeEffect>(); in emitCode()
220 builder->getEffectAttributeName(drawEffect.getVertexAttribIndices()[0]); in emitCode()
225 builder->getEffectAttributeName(drawEffect.getVertexAttribIndices()[1]); in emitCode()
253 static inline EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) { in GenKey() argument
[all …]
/external/skia/src/effects/gradients/
DSkTwoPointRadialGradient.cpp529 const GrDrawEffect& drawEffect) in GrGLRadial2Gradient() argument
537 const GrRadial2Gradient& data = drawEffect.castEffect<GrRadial2Gradient>(); in GrGLRadial2Gradient()
542 const GrDrawEffect& drawEffect, in emitCode() argument
615 const GrDrawEffect& drawEffect) { in setData() argument
616 INHERITED::setData(uman, drawEffect); in setData()
617 const GrRadial2Gradient& data = drawEffect.castEffect<GrRadial2Gradient>(); in setData()
648 GrGLEffect::EffectKey GrGLRadial2Gradient::GenKey(const GrDrawEffect& drawEffect, in GenKey() argument
654 EffectKey key = GenBaseGradientKey(drawEffect); in GenKey()
655 if (drawEffect.castEffect<GrRadial2Gradient>().isDegenerate()) { in GenKey()
/external/chromium_org/third_party/skia/src/effects/gradients/
DSkTwoPointRadialGradient.cpp529 const GrDrawEffect& drawEffect) in GrGLRadial2Gradient() argument
537 const GrRadial2Gradient& data = drawEffect.castEffect<GrRadial2Gradient>(); in GrGLRadial2Gradient()
542 const GrDrawEffect& drawEffect, in emitCode() argument
615 const GrDrawEffect& drawEffect) { in setData() argument
616 INHERITED::setData(uman, drawEffect); in setData()
617 const GrRadial2Gradient& data = drawEffect.castEffect<GrRadial2Gradient>(); in setData()
648 GrGLEffect::EffectKey GrGLRadial2Gradient::GenKey(const GrDrawEffect& drawEffect, in GenKey() argument
654 EffectKey key = GenBaseGradientKey(drawEffect); in GenKey()
655 if (drawEffect.castEffect<GrRadial2Gradient>().isDegenerate()) { in GenKey()

123