treat fNeedsGlyphTransform the same for SDFT and Bitmap

MakeDistanceField should just make fNeedsGlyphTransform to
true making invariant maintenance closer to MakeBitmap.

Change-Id: I6e6652a45e39aa4d9ab4ceb16e8048ccb3655900
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/286096
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Herb Derby <herb@google.com>
This commit is contained in:
Herb Derby 2020-04-29 13:04:34 -04:00 committed by Skia Commit-Bot
parent 702c5a3f42
commit 53a94381f8

View File

@ -73,6 +73,7 @@ std::unique_ptr<GrAtlasTextOp> GrAtlasTextOp::MakeDistanceField(
: kGrayscaleDistanceField_MaskType;
op->fUseGammaCorrectDistanceTable = useGammaCorrectDistanceTable;
op->fLuminanceColor = luminanceColor;
op->fNeedsGlyphTransform = true;
op->fNumGlyphs = glyphCount;
op->fGeoCount = 1;
return op;
@ -100,8 +101,6 @@ void GrAtlasTextOp::init() {
fDFGPFlags |=
(kLCDBGRDistanceField_MaskType == fMaskType) ? kBGR_DistanceFieldEffectFlag : 0;
}
fNeedsGlyphTransform = true;
}
SkRect bounds;