Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
resolved conflicts for bd57dac to stage-aosp-master
Browse files Browse the repository at this point in the history
Change-Id: I5107af13712d7cc908d8699e5c15a002f0a3ec85
  • Loading branch information
stephenhines committed Oct 3, 2015
2 parents 5fbb245 + bd57dac commit ee144b1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions libs/hwui/FontRenderer.cpp
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions libs/hwui/FontRenderer.h
Expand Up @@ -151,8 +151,6 @@ class FontRenderer {
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() {
Expand Down
2 changes: 0 additions & 2 deletions libs/hwui/font/Font.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit ee144b1

Please sign in to comment.