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