Index: src/effects/gradients/SkGradientShader.cpp |
=================================================================== |
--- src/effects/gradients/SkGradientShader.cpp (revision 8417) |
+++ src/effects/gradients/SkGradientShader.cpp (working copy) |
@@ -866,8 +866,8 @@ |
} |
void GrGradientEffect::getConstantColorComponents(GrColor* color, uint32_t* validFlags) const { |
- if (fIsOpaque && (kA_ValidComponentFlag & *validFlags) && 0xff == GrColorUnpackA(*color)) { |
- *validFlags = kA_ValidComponentFlag; |
+ if (fIsOpaque && (kA_GrColorComponentFlag & *validFlags) && 0xff == GrColorUnpackA(*color)) { |
+ *validFlags = kA_GrColorComponentFlag; |
} else { |
*validFlags = 0; |
} |