aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-08-19 16:23:23 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-19 16:23:23 -0700
commite2348ccb477b97847cd147161a57fbbbfc8bba10 (patch)
tree8a31a4b288fdb75c5d69af66e32ff9d7944286c9 /src/pdf
parent4c54788e9298dce2b963ce288baf0d1695323e1f (diff)
src/utils/SkBitSet: simplify
Diffstat (limited to 'src/pdf')
-rw-r--r--src/pdf/SkPDFMakeCIDGlyphWidthsArray.cpp4
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;