diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2011-05-12 17:42:06 -0700 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2011-05-13 11:07:38 -0700 |
commit | 2ea75880142152b3a9993cb245754d73c05749a7 (patch) | |
tree | 35cc62ca30c9a4446a96ad674936dbe6652cfc6c /libs/hwui | |
parent | f470ced7cdb10a112a526339f92840587918aa6b (diff) | |
download | frameworks_base-2ea75880142152b3a9993cb245754d73c05749a7.zip frameworks_base-2ea75880142152b3a9993cb245754d73c05749a7.tar.gz frameworks_base-2ea75880142152b3a9993cb245754d73c05749a7.tar.bz2 |
Prepare OpenGLRenderer to use glyphs from TextLayoutCache
- add OpenGLRenderer.drawGlyph()
- refactor glypth logging code
Change-Id: I797e6f1304d3f3f8f6ed31e7f9965d336233d2a4
Diffstat (limited to 'libs/hwui')
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 5 | ||||
-rw-r--r-- | libs/hwui/OpenGLRenderer.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 80a7bed..34226c4 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -1982,6 +1982,11 @@ void OpenGLRenderer::drawText(const char* text, int bytesCount, int count, drawTextDecorations(text, bytesCount, length, oldX, oldY, paint); } +void OpenGLRenderer::drawGlyphs(const char* glyphs, int index, int count, float x, float y, + SkPaint* paint) { + // TODO +} + void OpenGLRenderer::drawPath(SkPath* path, SkPaint* paint) { if (mSnapshot->isIgnored()) return; diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index 271e4b1..3e09373 100644 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -123,6 +123,8 @@ public: virtual void drawPoints(float* points, int count, SkPaint* paint); virtual void drawText(const char* text, int bytesCount, int count, float x, float y, SkPaint* paint); + virtual void drawGlyphs(const char* glyphs, int index, int count, float x, float y, + SkPaint* paint); virtual void resetShader(); virtual void setupShader(SkiaShader* shader); |