Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit caa71fb7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update legacy font renderer to use the updated method names from Skia"

parents 3008fd04 086994b6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -96,8 +96,8 @@ void TestUtils::layoutTextUnscaled(const SkPaint& paint, const char* text,
        int32_t unichar = utf32_from_utf8_at(text, 4, 0, &nextIndex);
        text += nextIndex;

        glyph_t glyph = autoCache.get()->unicharToGlyph(unichar);
        autoCache.getCache()->unicharToGlyph(unichar);
        glyph_t glyph = autoCache->unicharToGlyph(unichar);
        autoCache->unicharToGlyph(unichar);

        // push glyph and its relative position
        outGlyphs->push_back(glyph);
@@ -105,7 +105,7 @@ void TestUtils::layoutTextUnscaled(const SkPaint& paint, const char* text,
        outPositions->push_back(0);

        // compute bounds
        SkGlyph skGlyph = autoCache.get()->getUnicharMetrics(unichar);
        SkGlyph skGlyph = autoCache->getUnicharMetrics(unichar);
        Rect glyphBounds(skGlyph.fWidth, skGlyph.fHeight);
        glyphBounds.translate(totalAdvance + skGlyph.fLeft, skGlyph.fTop);
        bounds.unionWith(glyphBounds);