Lines Matching refs:effect
325 /// Each stage hosts a GrEffect. The effect produces an output color or coverage in the fragment
343 const GrEffectRef* addColorEffect(const GrEffectRef* effect, int attr0 = -1, int attr1 = -1) {
344 SkASSERT(NULL != effect);
345 SkNEW_APPEND_TO_TARRAY(&fColorStages, GrEffectStage, (effect, attr0, attr1));
346 return effect;
349 const GrEffectRef* addCoverageEffect(const GrEffectRef* effect, int attr0 = -1, int attr1 = -1) {
350 SkASSERT(NULL != effect);
351 SkNEW_APPEND_TO_TARRAY(&fCoverageStages, GrEffectStage, (effect, attr0, attr1));
352 return effect;
359 GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix);
360 this->addColorEffect(effect)->unref();
364 GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix);
365 this->addCoverageEffect(effect)->unref();
371 GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix, params);
372 this->addColorEffect(effect)->unref();
378 GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix, params);
379 this->addCoverageEffect(effect)->unref();
689 * Changing the clip has the side-effect of possibly zeroing
972 // Here we ref the effects directly rather than the effect-refs. TODO: When the effect-
973 // ref gets fully unref'ed it will cause the underlying effect to unref its resources