Home | History | Annotate | Download | only in effects

Lines Matching refs:GrConfigConversionEffect

8 #include "GrConfigConversionEffect.h"
21 , fEffectMatrix(drawEffect.castEffect<GrConfigConversionEffect>().coordsType()) {
22 const GrConfigConversionEffect& effect = drawEffect.castEffect<GrConfigConversionEffect>();
41 if (GrConfigConversionEffect::kNone_PMConversion == fPMConversion) {
47 case GrConfigConversionEffect::kMulByAlpha_RoundUp_PMConversion:
52 case GrConfigConversionEffect::kMulByAlpha_RoundDown_PMConversion:
61 case GrConfigConversionEffect::kDivByAlpha_RoundUp_PMConversion:
65 case GrConfigConversionEffect::kDivByAlpha_RoundDown_PMConversion:
80 const GrConfigConversionEffect& conv = drawEffect.castEffect<GrConfigConversionEffect>();
85 const GrConfigConversionEffect& conv = drawEffect.castEffect<GrConfigConversionEffect>();
98 GrConfigConversionEffect::PMConversion fPMConversion;
107 GrConfigConversionEffect::GrConfigConversionEffect(GrTexture* texture,
120 const GrBackendEffectFactory& GrConfigConversionEffect::getFactory() const {
121 return GrTBackendEffectFactory<GrConfigConversionEffect>::getInstance();
124 bool GrConfigConversionEffect::onIsEqual(const GrEffect& s) const {
125 const GrConfigConversionEffect& other = CastEffect<GrConfigConversionEffect>(s);
131 void GrConfigConversionEffect::getConstantColorComponents(GrColor* color,
138 GR_DEFINE_EFFECT_TEST(GrConfigConversionEffect);
140 GrEffectRef* GrConfigConversionEffect::TestCreate(SkMWCRandom* random,
151 AutoEffectUnref effect(SkNEW_ARGS(GrConfigConversionEffect,
160 void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context,
222 AutoEffectUnref pmToUPM1(SkNEW_ARGS(GrConfigConversionEffect, (dataTex,
226 AutoEffectUnref upmToPM(SkNEW_ARGS(GrConfigConversionEffect, (readTex,
230 AutoEffectUnref pmToUPM2(SkNEW_ARGS(GrConfigConversionEffect, (tempTex,
274 const GrEffectRef* GrConfigConversionEffect::Create(GrTexture* texture,
279 // If we returned a GrConfigConversionEffect that was equivalent to a GrSimpleTextureEffect
290 AutoEffectUnref effect(SkNEW_ARGS(GrConfigConversionEffect, (texture,