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

Commit 0fe8ea20 authored by Stephen Hines's avatar Stephen Hines Committed by Android Git Automerger
Browse files

am 697e3dd6: am ee144b1e: resolved conflicts for bd57dac5 to stage-aosp-master

* commit '697e3dd6':
  Don't unregister Fonts from renderer at destruction
parents 4b6c2334 697e3dd6
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -667,14 +667,6 @@ bool FontRenderer::renderTextOnPath(const SkPaint* paint, const Rect* clip, cons
    return mDrawn;
}

void FontRenderer::removeFont(const Font* font) {
    mActiveFonts.remove(font->getDescription());

    if (mCurrentFont == font) {
        mCurrentFont = nullptr;
    }
}

void FontRenderer::blurImage(uint8_t** image, int32_t width, int32_t height, float radius) {
    uint32_t intRadius = Blur::convertRadiusToInt(radius);
#ifdef ANDROID_ENABLE_RENDERSCRIPT
+0 −2
Original line number Diff line number Diff line
@@ -147,8 +147,6 @@ private:
            float x3, float y3, float u3, float v3,
            float x4, float y4, float u4, float v4, CacheTexture* texture);

    void removeFont(const Font* font);

    void checkTextureUpdate();

    void setTextureDirty() {
+0 −2
Original line number Diff line number Diff line
@@ -61,8 +61,6 @@ Font::FontDescription::FontDescription(const SkPaint* paint, const SkMatrix& ras
}

Font::~Font() {
    mState->removeFont(this);

    for (uint32_t i = 0; i < mCachedGlyphs.size(); i++) {
        delete mCachedGlyphs.valueAt(i);
    }