Loading libs/hwui/FontRenderer.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -697,8 +697,7 @@ void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyp } CacheTexture* FontRenderer::createCacheTexture(int width, int height, bool allocate) { uint8_t* textureMemory = NULL; CacheTexture* cacheTexture = new CacheTexture(textureMemory, width, height); CacheTexture* cacheTexture = new CacheTexture(width, height); if (allocate) { allocateTextureMemory(cacheTexture); Loading libs/hwui/FontRenderer.h +2 −3 Original line number Diff line number Diff line Loading @@ -61,9 +61,8 @@ class FontRenderer; class CacheTexture { public: CacheTexture() { } CacheTexture(uint8_t* texture, uint16_t width, uint16_t height) : mTexture(texture), mTextureId(0), mWidth(width), mHeight(height), CacheTexture(uint16_t width, uint16_t height) : mTexture(NULL), mTextureId(0), mWidth(width), mHeight(height), mLinearFiltering(false) { } ~CacheTexture() { if (mTexture) { Loading libs/hwui/GammaFontRenderer.h +1 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ public: void clear() { delete mRenderer; mRenderer = NULL; } void flush() { Loading Loading
libs/hwui/FontRenderer.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -697,8 +697,7 @@ void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyp } CacheTexture* FontRenderer::createCacheTexture(int width, int height, bool allocate) { uint8_t* textureMemory = NULL; CacheTexture* cacheTexture = new CacheTexture(textureMemory, width, height); CacheTexture* cacheTexture = new CacheTexture(width, height); if (allocate) { allocateTextureMemory(cacheTexture); Loading
libs/hwui/FontRenderer.h +2 −3 Original line number Diff line number Diff line Loading @@ -61,9 +61,8 @@ class FontRenderer; class CacheTexture { public: CacheTexture() { } CacheTexture(uint8_t* texture, uint16_t width, uint16_t height) : mTexture(texture), mTextureId(0), mWidth(width), mHeight(height), CacheTexture(uint16_t width, uint16_t height) : mTexture(NULL), mTextureId(0), mWidth(width), mHeight(height), mLinearFiltering(false) { } ~CacheTexture() { if (mTexture) { Loading
libs/hwui/GammaFontRenderer.h +1 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ public: void clear() { delete mRenderer; mRenderer = NULL; } void flush() { Loading