diff options
| author | 2015-10-03 00:46:17 +0000 | |
|---|---|---|
| committer | 2015-10-03 00:46:17 +0000 | |
| commit | 697e3dd6b9a8be4451e19ab7c03ced310602b92a (patch) | |
| tree | e736cb740f4c8e4a0586e2a554b7d9e9773f31b0 | |
| parent | 3cb53543e224c0f98801d71c22a2d81974186597 (diff) | |
| parent | ee144b1e60a88e8f097113e046813f0b61c38b9b (diff) | |
am ee144b1e: resolved conflicts for bd57dac5 to stage-aosp-master
* commit 'ee144b1e60a88e8f097113e046813f0b61c38b9b':
Don't unregister Fonts from renderer at destruction
| -rw-r--r-- | libs/hwui/FontRenderer.cpp | 8 | ||||
| -rw-r--r-- | libs/hwui/FontRenderer.h | 2 | ||||
| -rw-r--r-- | libs/hwui/font/Font.cpp | 2 |
3 files changed, 0 insertions, 12 deletions
diff --git a/libs/hwui/FontRenderer.cpp b/libs/hwui/FontRenderer.cpp index 9c2c1192a69d..9a2a879e594e 100644 --- a/libs/hwui/FontRenderer.cpp +++ b/libs/hwui/FontRenderer.cpp @@ -681,14 +681,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 diff --git a/libs/hwui/FontRenderer.h b/libs/hwui/FontRenderer.h index dfb107c99bc5..3da20ee255af 100644 --- a/libs/hwui/FontRenderer.h +++ b/libs/hwui/FontRenderer.h @@ -151,8 +151,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() { diff --git a/libs/hwui/font/Font.cpp b/libs/hwui/font/Font.cpp index 5de64a4b1654..762f2bba3340 100644 --- a/libs/hwui/font/Font.cpp +++ b/libs/hwui/font/Font.cpp @@ -64,8 +64,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); } |