Lines Matching refs:XRGlyphCacheEntry
43 HashMap<MutableInteger, XRGlyphCacheEntry> cacheMap = new HashMap<MutableInteger, XRGlyphCacheEntry>(256);
75 int glyphID = XRGlyphCacheEntry.getGlyphID(glyphPtr);
96 protected XRGlyphCacheEntry getEntryForPointer(long imgPtr) {
97 int id = XRGlyphCacheEntry.getGlyphID(imgPtr);
107 public XRGlyphCacheEntry[] cacheGlyphs(GlyphList glyphList) {
110 XRGlyphCacheEntry[] entries = new XRGlyphCacheEntry[glyphList.getNumGlyphs()];
112 ArrayList<XRGlyphCacheEntry> uncachedGlyphs = null;
115 XRGlyphCacheEntry glyph;
119 glyph = new XRGlyphCacheEntry(imgPtrs[i], glyphList);
124 uncachedGlyphs = new ArrayList<XRGlyphCacheEntry>();
140 protected void uploadGlyphs(XRGlyphCacheEntry[] glyphs, ArrayList<XRGlyphCacheEntry> uncachedGlyphs, GlyphList gl, int[] glIndices) {
141 for (XRGlyphCacheEntry glyph : uncachedGlyphs) {
150 List<XRGlyphCacheEntry>[] seperatedGlyphList = seperateGlyphTypes(uncachedGlyphs, containsLCDGlyphs);
151 List<XRGlyphCacheEntry> grayGlyphList = seperatedGlyphList[0];
152 List<XRGlyphCacheEntry> lcdGlyphList = seperatedGlyphList[1];
167 ArrayList<XRGlyphCacheEntry> tmpList = new ArrayList<XRGlyphCacheEntry>(1);
170 for (XRGlyphCacheEntry entry : uncachedGlyphs) {
186 protected List<XRGlyphCacheEntry>[] seperateGlyphTypes(List<XRGlyphCacheEntry> glyphList, boolean containsLCDGlyphs) {
187 ArrayList<XRGlyphCacheEntry> lcdGlyphs = null;
188 ArrayList<XRGlyphCacheEntry> grayGlyphs = null;
190 for (XRGlyphCacheEntry cacheEntry : glyphList) {
193 grayGlyphs = new ArrayList<XRGlyphCacheEntry>(glyphList.size());
199 lcdGlyphs = new ArrayList<XRGlyphCacheEntry>(glyphList.size());
212 protected byte[] generateGlyphImageStream(List<XRGlyphCacheEntry> glyphList) {
216 for (XRGlyphCacheEntry cacheEntry : glyphList) {
223 protected boolean containsLCDGlyphs(List<XRGlyphCacheEntry> entries) {
226 for (XRGlyphCacheEntry entry : entries) {
236 protected void clearCache(XRGlyphCacheEntry[] glyps) {
242 ArrayList<XRGlyphCacheEntry> cacheList = new ArrayList<XRGlyphCacheEntry>(cacheMap.values());
243 Collections.sort(cacheList, new Comparator<XRGlyphCacheEntry>() {
244 public int compare(XRGlyphCacheEntry e1, XRGlyphCacheEntry e2) {
249 for (XRGlyphCacheEntry glyph : glyps) {
257 XRGlyphCacheEntry entry = cacheList.get(i);
265 for (XRGlyphCacheEntry glyph : glyps) {
281 XRGlyphCacheEntry entry = cacheMap.get(tmp);