diff options
| author | Romain Guy <romainguy@google.com> | 2013-03-20 02:29:46 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-03-20 02:29:47 +0000 |
| commit | ec3928bf0993e13fb82c65ac26a4d70f5bc6c5e4 (patch) | |
| tree | 9dc08b2a14fcec17bd4e7f684f144af8b199eff1 /libs/hwui/FontRenderer.h | |
| parent | 4427db27b312b46cc34a83a893e522a6468ee396 (diff) | |
| parent | 661a87ec28a49458f1faf533783abf2ab9927cab (diff) | |
| download | frameworks_base-ec3928bf0993e13fb82c65ac26a4d70f5bc6c5e4.zip frameworks_base-ec3928bf0993e13fb82c65ac26a4d70f5bc6c5e4.tar.gz frameworks_base-ec3928bf0993e13fb82c65ac26a4d70f5bc6c5e4.tar.bz2 | |
Merge "Reduce number of glDraw calls when drawing text" into jb-mr2-dev
Diffstat (limited to 'libs/hwui/FontRenderer.h')
| -rw-r--r-- | libs/hwui/FontRenderer.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/libs/hwui/FontRenderer.h b/libs/hwui/FontRenderer.h index 442f4e2..080cc71 100644 --- a/libs/hwui/FontRenderer.h +++ b/libs/hwui/FontRenderer.h @@ -144,7 +144,6 @@ private: void removeFont(const Font* font); - void updateDrawParams(); void checkTextureUpdate(); void setTextureDirty() { @@ -165,12 +164,7 @@ private: bool mUploadTexture; - // Pointer to vertex data to speed up frame to frame work - float* mTextMesh; - uint32_t mCurrentQuadIndex; - uint32_t mLastQuadIndex; uint32_t mMaxNumberOfQuads; - uint32_t mIndexBufferID; const Rect* mClip; @@ -181,33 +175,6 @@ private: bool mLinearFiltering; - struct TextBatch { - TextBatch(): offset(NULL), count(0), texture(NULL) { - } - - TextBatch(uint16_t* offset, uint32_t count, CacheTexture* texture): - offset(offset), count(count), texture(texture) { - } - - static int compare(const TextBatch& lhs, const TextBatch& rhs) { - return lhs.texture->getTextureId() - rhs.texture->getTextureId(); - } - - friend inline int strictly_order_type(const TextBatch& lhs, const TextBatch& rhs) { - return compare(lhs, rhs) < 0; - } - - friend inline int compare_type(const TextBatch& lhs, const TextBatch& rhs) { - return compare(lhs, rhs); - } - - uint16_t* offset; - uint32_t count; - CacheTexture* texture; - }; - - SortedList<TextBatch> mDrawBatch; - // RS constructs sp<RSC::RS> mRs; sp<const RSC::Element> mRsElement; |
