Lines Matching refs:GrConfigConversionEffect
20 const GrConfigConversionEffect& cce = args.fFp.cast<GrConfigConversionEffect>(); in emitCode()
22 GrConfigConversionEffect::PMConversion pmConversion = cce.pmConversion(); in emitCode()
38 if (GrConfigConversionEffect::kNone_PMConversion == pmConversion) { in emitCode()
44 case GrConfigConversionEffect::kMulByAlpha_RoundUp_PMConversion: in emitCode()
49 case GrConfigConversionEffect::kMulByAlpha_RoundDown_PMConversion: in emitCode()
59 case GrConfigConversionEffect::kDivByAlpha_RoundUp_PMConversion: in emitCode()
65 case GrConfigConversionEffect::kDivByAlpha_RoundDown_PMConversion: in emitCode()
85 const GrConfigConversionEffect& cce = processor.cast<GrConfigConversionEffect>(); in GenKey()
97 GrConfigConversionEffect::GrConfigConversionEffect(GrTexture* texture, in GrConfigConversionEffect() function in GrConfigConversionEffect
104 this->initClassID<GrConfigConversionEffect>(); in GrConfigConversionEffect()
114 bool GrConfigConversionEffect::onIsEqual(const GrFragmentProcessor& s) const { in onIsEqual()
115 const GrConfigConversionEffect& other = s.cast<GrConfigConversionEffect>(); in onIsEqual()
120 void GrConfigConversionEffect::onComputeInvariantOutput(GrInvariantOutput* inout) const { in onComputeInvariantOutput()
126 GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrConfigConversionEffect);
128 const GrFragmentProcessor* GrConfigConversionEffect::TestCreate(GrProcessorTestData* d) { in TestCreate()
134 return new GrConfigConversionEffect(d->fTextures[GrProcessorUnitTest::kSkiaPMTextureIdx], in TestCreate()
140 void GrConfigConversionEffect::onGetGLSLProcessorKey(const GrGLSLCaps& caps, in onGetGLSLProcessorKey()
145 GrGLSLFragmentProcessor* GrConfigConversionEffect::onCreateGLSLInstance() const { in onCreateGLSLInstance()
151 void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context, in TestForPreservingPMConversions()
216 SkAutoTUnref<GrFragmentProcessor> pmToUPM1(new GrConfigConversionEffect( in TestForPreservingPMConversions()
218 SkAutoTUnref<GrFragmentProcessor> upmToPM(new GrConfigConversionEffect( in TestForPreservingPMConversions()
220 SkAutoTUnref<GrFragmentProcessor> pmToUPM2(new GrConfigConversionEffect( in TestForPreservingPMConversions()
290 const GrFragmentProcessor* GrConfigConversionEffect::Create(GrTexture* texture, in Create()
306 return new GrConfigConversionEffect(texture, swizzle, pmConversion, matrix); in Create()