summaryrefslogtreecommitdiff
path: root/rsFont.h
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2012-07-25 19:33:43 -0700
committerJason Sams <jsams@google.com>2012-07-25 19:33:43 -0700
commita6dd823b9dcbd7ce7dfc34eda52a1e4104771f79 (patch)
tree324d0c1e625f5ae39b6e783df8c08f75cd5d0350 /rsFont.h
parent807fdc4b6f3fb893015ee136565d6151bb2332d3 (diff)
downloadrs-a6dd823b9dcbd7ce7dfc34eda52a1e4104771f79.tar.gz
Cleanup pointer access in adapter and font.
Change-Id: Ie500574adebb9bdb38c138f78582af2cd7610f76
Diffstat (limited to 'rsFont.h')
-rw-r--r--rsFont.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/rsFont.h b/rsFont.h
index 460dfdea..8f43a2ab 100644
--- a/rsFont.h
+++ b/rsFont.h
@@ -215,10 +215,11 @@ protected:
// Texture to cache glyph bitmaps
ObjectBaseRef<Allocation> mTextTexture;
+ uint8_t *mCacheBuffer;
+ uint32_t mCacheWidth;
+ uint32_t mCacheHeight;
+
void initTextTexture();
- const uint8_t* getTextTextureData() const {
- return (uint8_t*)mTextTexture->getPtr();
- }
#ifndef ANDROID_RS_SERIALIZE
bool cacheBitmap(FT_Bitmap_ *bitmap, uint32_t *retOriginX, uint32_t *retOriginY);