diff options
| author | 2013-04-15 14:34:35 -0700 | |
|---|---|---|
| committer | 2013-04-15 14:34:35 -0700 | |
| commit | 55709fc1c7b2741ba3cf7f160d7d8644c112bb99 (patch) | |
| tree | 87a36ca622fe814f1ab4f7a78f56acd1c74dee18 /libs/hwui/FontRenderer.h | |
| parent | 647e4b82fea7e566b7173a9398150f1e26f5834f (diff) | |
| parent | 55b883b0a960b37aa453253f3ccb614dd95c221c (diff) | |
am 55b883b0: am 30c990c3: Merge "Draw Operation merging" into jb-mr2-dev
* commit '55b883b0a960b37aa453253f3ccb614dd95c221c':
Draw Operation merging
Diffstat (limited to 'libs/hwui/FontRenderer.h')
| -rw-r--r-- | libs/hwui/FontRenderer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/hwui/FontRenderer.h b/libs/hwui/FontRenderer.h index f95ca1ea66e2..7e636e74eb06 100644 --- a/libs/hwui/FontRenderer.h +++ b/libs/hwui/FontRenderer.h @@ -68,7 +68,8 @@ public: // bounds is an out parameter bool renderPosText(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, const float* positions, Rect* bounds, - Functor* functor); + Functor* functor, bool forceFinish = true); + // bounds is an out parameter bool renderTextOnPath(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, SkPath* path, float hOffset, float vOffset, Rect* bounds); @@ -103,6 +104,8 @@ public: private: friend class Font; + static const uint32_t gMaxNumberOfQuads = 2048; + const uint8_t* mGammaTable; void allocateTextureMemory(CacheTexture* cacheTexture); @@ -156,7 +159,6 @@ private: bool mUploadTexture; - uint32_t mMaxNumberOfQuads; uint32_t mIndexBufferID; Functor* mFunctor; |