diff options
| author | 2013-04-15 14:31:02 -0700 | |
|---|---|---|
| committer | 2013-04-15 14:31:02 -0700 | |
| commit | 55b883b0a960b37aa453253f3ccb614dd95c221c (patch) | |
| tree | abdfe1015a49775e92dfec9adebb483cd68fe3d4 /libs/hwui/FontRenderer.h | |
| parent | df6db6adc2fd09da77a028539e802e69d0a8d6a1 (diff) | |
| parent | 30c990c361291ad578ef4ffe4a4dd0fd6080797b (diff) | |
am 30c990c3: Merge "Draw Operation merging" into jb-mr2-dev
* commit '30c990c361291ad578ef4ffe4a4dd0fd6080797b':
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 348b7e3b2b0a..307a1d9b761b 100644 --- a/libs/hwui/FontRenderer.h +++ b/libs/hwui/FontRenderer.h @@ -66,7 +66,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); @@ -101,6 +102,8 @@ public: private: friend class Font; + static const uint32_t gMaxNumberOfQuads = 2048; + const uint8_t* mGammaTable; void allocateTextureMemory(CacheTexture* cacheTexture); @@ -154,7 +157,6 @@ private: bool mUploadTexture; - uint32_t mMaxNumberOfQuads; uint32_t mIndexBufferID; Functor* mFunctor; |