diff options
author | egdaniel <egdaniel@google.com> | 2014-10-13 12:53:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-13 12:53:46 -0700 |
commit | ccb2e384a036f29d989d3c1468f879324e81a678 (patch) | |
tree | 27e38ca2ad78e3a0f741a1cc6c23899eb22b822c /src/gpu/effects/GrYUVtoRGBEffect.cpp | |
parent | cad5d3e264535c919b80e1e2a85407307961f221 (diff) |
Create helper functions to use in computeInvariantOutput calls
BUG=skia:
Review URL: https://codereview.chromium.org/643743003
Diffstat (limited to 'src/gpu/effects/GrYUVtoRGBEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrYUVtoRGBEffect.cpp | 4 |
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; |