| Index: src/gpu/effects/GrCustomCoordsTextureEffect.cpp
|
| diff --git a/src/gpu/effects/GrCustomCoordsTextureEffect.cpp b/src/gpu/effects/GrCustomCoordsTextureEffect.cpp
|
| index 7362ba98a63eb249d15297ee03af8a3ee378170e..b9794c149ddc8c9657bdbb9979ce0d80567aa5f4 100644
|
| --- a/src/gpu/effects/GrCustomCoordsTextureEffect.cpp
|
| +++ b/src/gpu/effects/GrCustomCoordsTextureEffect.cpp
|
| @@ -72,13 +72,14 @@
|
| return fTextureAccess == cte.fTextureAccess;
|
| }
|
|
|
| -void GrCustomCoordsTextureEffect::onComputeInvariantOutput(InvariantOutput* inout) const {
|
| - if (inout->isOpaque() && GrPixelConfigIsOpaque(this->texture(0)->config())) {
|
| - inout->fValidFlags = kA_GrColorComponentFlag;
|
| +void GrCustomCoordsTextureEffect::getConstantColorComponents(GrColor* color,
|
| + uint32_t* validFlags) const {
|
| + if ((*validFlags & kA_GrColorComponentFlag) && 0xFF == GrColorUnpackA(*color) &&
|
| + GrPixelConfigIsOpaque(this->texture(0)->config())) {
|
| + *validFlags = kA_GrColorComponentFlag;
|
| } else {
|
| - inout->fValidFlags = 0;
|
| + *validFlags = 0;
|
| }
|
| - inout->fIsSingleComponent = false;
|
| }
|
|
|
| const GrBackendGeometryProcessorFactory& GrCustomCoordsTextureEffect::getFactory() const {
|
|
|