aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrYUVtoRGBEffect.cpp
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2014-10-13 12:53:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-13 12:53:46 -0700
commitccb2e384a036f29d989d3c1468f879324e81a678 (patch)
tree27e38ca2ad78e3a0f741a1cc6c23899eb22b822c /src/gpu/effects/GrYUVtoRGBEffect.cpp
parentcad5d3e264535c919b80e1e2a85407307961f221 (diff)
Create helper functions to use in computeInvariantOutput calls
Diffstat (limited to 'src/gpu/effects/GrYUVtoRGBEffect.cpp')
-rw-r--r--src/gpu/effects/GrYUVtoRGBEffect.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gpu/effects/GrYUVtoRGBEffect.cpp b/src/gpu/effects/GrYUVtoRGBEffect.cpp
index ecbaf3ae71..e3d25a2f1d 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;