diff options
Diffstat (limited to 'src/gpu/effects/GrBitmapTextGeoProc.cpp')
-rw-r--r-- | src/gpu/effects/GrBitmapTextGeoProc.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gpu/effects/GrBitmapTextGeoProc.cpp b/src/gpu/effects/GrBitmapTextGeoProc.cpp index 1578fd8fe4..9c5e82e8ff 100644 --- a/src/gpu/effects/GrBitmapTextGeoProc.cpp +++ b/src/gpu/effects/GrBitmapTextGeoProc.cpp @@ -84,15 +84,15 @@ bool GrBitmapTextGeoProc::onIsEqual(const GrGeometryProcessor& other) const { return SkToBool(this->inColor()) == SkToBool(gp.inColor()); } -void GrBitmapTextGeoProc::onComputeInvariantOutput(GrInvariantOutput* inout) const { +void GrBitmapTextGeoProc::onGetInvariantOutputCoverage(GrInitInvariantOutput* out) const { if (GrPixelConfigIsAlphaOnly(this->texture(0)->config())) { - inout->mulByUnknownAlpha(); + out->setUnknownSingleComponent(); } else if (GrPixelConfigIsOpaque(this->texture(0)->config())) { - inout->mulByUnknownOpaqueColor(); - inout->setUsingLCDCoverage(); + out->setUnknownOpaqueFourComponents(); + out->setUsingLCDCoverage(); } else { - inout->mulByUnknownColor(); - inout->setUsingLCDCoverage(); + out->setUnknownFourComponents(); + out->setUsingLCDCoverage(); } } |