summaryrefslogtreecommitdiffstats
path: root/cmds/screenrecord/TextRenderer.h
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2013-11-19 12:50:17 -0800
committerAndy McFadden <fadden@android.com>2013-11-19 13:02:25 -0800
commit7a66622c2c9250ce4ad0091195331ce4cb91a63d (patch)
tree1a521a9c8acf7d555052fc6e9e21ff22178d703f /cmds/screenrecord/TextRenderer.h
parent432600c1688d35087123303a6737603ec62ce5d5 (diff)
downloadframeworks_av-7a66622c2c9250ce4ad0091195331ce4cb91a63d.zip
frameworks_av-7a66622c2c9250ce4ad0091195331ce4cb91a63d.tar.gz
frameworks_av-7a66622c2c9250ce4ad0091195331ce4cb91a63d.tar.bz2
screenrecord fixes
Fixes to issues identified during code review. Change-Id: I2203694acb5c0544878f64f4347d29ad1a0725c4
Diffstat (limited to 'cmds/screenrecord/TextRenderer.h')
-rw-r--r--cmds/screenrecord/TextRenderer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmds/screenrecord/TextRenderer.h b/cmds/screenrecord/TextRenderer.h
index 9a28fcb..03dd2fb 100644
--- a/cmds/screenrecord/TextRenderer.h
+++ b/cmds/screenrecord/TextRenderer.h
@@ -109,6 +109,10 @@ private:
// Like getGlyphHeight(), but result is scaled.
float getScaledGlyphHeight() const { return getGlyphHeight() * mScale; }
+ // Convert an ASCII character to a glyph index. Returns the glyph for
+ // '?' if we have no glyph for the specified character.
+ size_t glyphIndex(char ch) const;
+
GLuint mTextureName;
float mScale;