aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrYUVtoRGBEffect.cpp
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2014-10-15 13:49:02 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-15 13:49:02 -0700
commit9e4d6d180fcfbbe2ea242196cc0affd45b7ed7ae (patch)
treed017bec2b2fa112755f361fefdd0bdf6ddf823d0 /src/gpu/effects/GrYUVtoRGBEffect.cpp
parentebd90ee211bb8740ff0e600632a7220ae82146a7 (diff)
Move willUseInputColor check to computeInvariantOutput
Diffstat (limited to 'src/gpu/effects/GrYUVtoRGBEffect.cpp')
-rw-r--r--src/gpu/effects/GrYUVtoRGBEffect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/effects/GrYUVtoRGBEffect.cpp b/src/gpu/effects/GrYUVtoRGBEffect.cpp
index f280d1bdd4..b18bd7fa01 100644
--- a/src/gpu/effects/GrYUVtoRGBEffect.cpp
+++ b/src/gpu/effects/GrYUVtoRGBEffect.cpp
@@ -99,7 +99,6 @@ private:
this->addTextureAccess(&fYAccess);
this->addTextureAccess(&fUAccess);
this->addTextureAccess(&fVAccess);
- this->setWillNotUseInputColor();
}
virtual bool onIsEqual(const GrFragmentProcessor& sBase) const {
@@ -112,7 +111,8 @@ private:
virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE {
// YUV is opaque
- inout->setToOther(kA_GrColorComponentFlag, 0xFF << GrColor_SHIFT_A);
+ inout->setToOther(kA_GrColorComponentFlag, 0xFF << GrColor_SHIFT_A,
+ InvariantOutput::kWill_ReadInput);
}
GrCoordTransform fCoordTransform;