Make flags private

Change-Id: I16139e8e6479b7088d5b426d4903fe71dd53d4af
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293376
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Herb Derby <herb@google.com>
This commit is contained in:
Herb Derby 2020-06-01 15:24:51 -04:00 committed by Skia Commit-Bot
parent 7351f8c560
commit 7a6221e86e
2 changed files with 8 additions and 10 deletions

View File

@ -351,10 +351,10 @@ GrGlyph* GrTextBlob::SubRun::grGlyph(int i) const {
return fVertexData[i].glyph.grGlyph;
}
void GrTextBlob::SubRun::setUseLCDText(bool useLCDText) { fFlags.useLCDText = useLCDText; }
bool GrTextBlob::SubRun::hasUseLCDText() const { return fFlags.useLCDText; }
void GrTextBlob::SubRun::setAntiAliased(bool antiAliased) { fFlags.antiAliased = antiAliased; }
bool GrTextBlob::SubRun::isAntiAliased() const { return fFlags.antiAliased; }
void GrTextBlob::SubRun::setUseLCDText(bool useLCDText) { fUseLCDText = useLCDText; }
bool GrTextBlob::SubRun::hasUseLCDText() const { return fUseLCDText; }
void GrTextBlob::SubRun::setAntiAliased(bool antiAliased) { fAntiAliased = antiAliased; }
bool GrTextBlob::SubRun::isAntiAliased() const { return fAntiAliased; }
const SkStrikeSpec& GrTextBlob::SubRun::strikeSpec() const { return fStrikeSpec; }
auto GrTextBlob::SubRun::MakePaths(

View File

@ -358,9 +358,7 @@ public:
GrGlyph* grGlyph(int i) const;
// df properties
void setUseLCDText(bool useLCDText);
bool hasUseLCDText() const;
void setAntiAliased(bool antiAliased);
bool isAntiAliased() const;
const SkStrikeSpec& strikeSpec() const;
@ -390,10 +388,6 @@ public:
GrTextBlob* fBlob;
const SkStrikeSpec fStrikeSpec;
sk_sp<GrTextStrike> fStrike;
struct {
bool useLCDText:1;
bool antiAliased:1;
} fFlags {false, false};
uint64_t fAtlasGeneration{GrDrawOpAtlas::kInvalidAtlasGeneration};
std::vector<PathGlyph> fPaths;
@ -405,9 +399,13 @@ private:
GrTextBlob* blob,
SkArenaAlloc* alloc);
bool hasW() const;
void setUseLCDText(bool useLCDText);
void setAntiAliased(bool antiAliased);
const SubRunType fType;
const GrMaskFormat fMaskFormat;
bool fUseLCDText{false};
bool fAntiAliased{false};
GrDrawOpAtlas::BulkUseTokenUpdater fBulkUseToken;
// The vertex bounds in device space if needsTransform() is false, otherwise the bounds in