Add maxGlyphCount to SkGlyphRunList

Change-Id: I2121c4c68f4124b6a65ca9c1883f3ee0e6d89695
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/244997
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Herb Derby <herb@google.com>
This commit is contained in:
Herb Derby 2019-09-30 16:23:41 -04:00 committed by Skia Commit-Bot
parent 2533afa3f8
commit cb6de9f661

View File

@ -88,6 +88,13 @@ public:
}
return glyphCount;
}
size_t maxGlyphCount() const {
size_t glyphCount = 0;
for(const auto& run : fGlyphRuns) {
glyphCount = SkTMax(glyphCount, run.runSize());
}
return glyphCount;
}
bool allFontsFinite() const;
SkPoint origin() const { return fOrigin; }