Index: src/gpu/effects/GrYUVtoRGBEffect.cpp |
diff --git a/src/gpu/effects/GrYUVtoRGBEffect.cpp b/src/gpu/effects/GrYUVtoRGBEffect.cpp |
index ecbaf3ae717f7fb69e1f77be4277360daa76b386..e3d25a2f1d456119ec6049fd5c4242e5080f7d74 100644 |
--- a/src/gpu/effects/GrYUVtoRGBEffect.cpp |
+++ b/src/gpu/effects/GrYUVtoRGBEffect.cpp |
@@ -112,9 +112,7 @@ private: |
virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE { |
// YUV is opaque |
- inout->fColor = 0xFF; |
- inout->fValidFlags = kA_GrColorComponentFlag; |
- inout->fIsSingleComponent = false; |
+ inout->setToOther(kA_GrColorComponentFlag, 0xFF << GrColor_SHIFT_A); |
} |
GrCoordTransform fCoordTransform; |