diff options
author | halcanary <halcanary@google.com> | 2016-08-19 16:23:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-19 16:23:23 -0700 |
commit | e2348ccb477b97847cd147161a57fbbbfc8bba10 (patch) | |
tree | 8a31a4b288fdb75c5d69af66e32ff9d7944286c9 /src/pdf | |
parent | 4c54788e9298dce2b963ce288baf0d1695323e1f (diff) |
src/utils/SkBitSet: simplify
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2265623002
Review-Url: https://codereview.chromium.org/2265623002
Diffstat (limited to 'src/pdf')
-rw-r--r-- | src/pdf/SkPDFMakeCIDGlyphWidthsArray.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pdf/SkPDFMakeCIDGlyphWidthsArray.cpp b/src/pdf/SkPDFMakeCIDGlyphWidthsArray.cpp index e1bb0d2785..988961e64b 100644 --- a/src/pdf/SkPDFMakeCIDGlyphWidthsArray.cpp +++ b/src/pdf/SkPDFMakeCIDGlyphWidthsArray.cpp @@ -171,7 +171,7 @@ sk_sp<SkPDFArray> SkPDFMakeCIDGlyphWidthsArray(SkGlyphCache* cache, // Limit the loop count to glyph id ranges provided. int lastIndex = num_glyphs; if (subset) { - while (!subset->isBitSet(lastIndex - 1) && lastIndex > 0) { + while (!subset->has(lastIndex - 1) && lastIndex > 0) { --lastIndex; } } @@ -180,7 +180,7 @@ sk_sp<SkPDFArray> SkPDFMakeCIDGlyphWidthsArray(SkGlyphCache* cache, for (int gId = 0; gId <= lastIndex; gId++) { int16_t advance = kInvalidAdvance; if (gId < lastIndex) { - if (!subset || 0 == gId || subset->isBitSet(gId)) { + if (!subset || 0 == gId || subset->has(gId)) { advance = (int16_t)cache->getGlyphIDAdvance(gId).fAdvanceX; } else { advance = kDontCareAdvance; |