reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 1 | /* |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 2 | * Copyright 2010 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 8 | #include "GrAtlas.h" |
| 9 | #include "GrGpu.h" |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 10 | #include "GrRectanizer.h" |
| 11 | #include "GrTextStrike.h" |
| 12 | #include "GrTextStrike_impl.h" |
commit-bot@chromium.org | 03e3e89 | 2013-10-02 18:19:17 +0000 | [diff] [blame] | 13 | #include "SkString.h" |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 14 | |
reed@google.com | fa35e3d | 2012-06-26 20:16:17 +0000 | [diff] [blame] | 15 | SK_DEFINE_INST_COUNT(GrFontScaler) |
| 16 | SK_DEFINE_INST_COUNT(GrKey) |
| 17 | |
| 18 | /////////////////////////////////////////////////////////////////////////////// |
| 19 | |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 20 | #define FONT_CACHE_STATS 0 |
| 21 | #if FONT_CACHE_STATS |
| 22 | static int g_PurgeCount = 0; |
| 23 | #endif |
| 24 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 25 | GrFontCache::GrFontCache(GrGpu* gpu) : fGpu(gpu) { |
| 26 | gpu->ref(); |
commit-bot@chromium.org | 3fddf0e | 2013-09-26 12:57:19 +0000 | [diff] [blame] | 27 | for (int i = 0; i < kMaskFormatCount; ++i) { |
| 28 | fAtlasMgr[i] = NULL; |
| 29 | } |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 30 | |
| 31 | fHead = fTail = NULL; |
| 32 | } |
| 33 | |
| 34 | GrFontCache::~GrFontCache() { |
| 35 | fCache.deleteAll(); |
commit-bot@chromium.org | 3fddf0e | 2013-09-26 12:57:19 +0000 | [diff] [blame] | 36 | for (int i = 0; i < kMaskFormatCount; ++i) { |
| 37 | delete fAtlasMgr[i]; |
| 38 | } |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 39 | fGpu->unref(); |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 40 | #if FONT_CACHE_STATS |
| 41 | GrPrintf("Num purges: %d\n", g_PurgeCount); |
| 42 | #endif |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 43 | } |
| 44 | |
commit-bot@chromium.org | 9529441 | 2013-09-26 15:28:40 +0000 | [diff] [blame] | 45 | static GrPixelConfig mask_format_to_pixel_config(GrMaskFormat format) { |
| 46 | switch (format) { |
| 47 | case kA8_GrMaskFormat: |
| 48 | return kAlpha_8_GrPixelConfig; |
| 49 | case kA565_GrMaskFormat: |
| 50 | return kRGB_565_GrPixelConfig; |
| 51 | case kA888_GrMaskFormat: |
| 52 | return kSkia8888_GrPixelConfig; |
| 53 | default: |
| 54 | SkDEBUGFAIL("unknown maskformat"); |
| 55 | } |
| 56 | return kUnknown_GrPixelConfig; |
| 57 | } |
| 58 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 59 | GrTextStrike* GrFontCache::generateStrike(GrFontScaler* scaler, |
| 60 | const Key& key) { |
commit-bot@chromium.org | 3fddf0e | 2013-09-26 12:57:19 +0000 | [diff] [blame] | 61 | GrMaskFormat format = scaler->getMaskFormat(); |
commit-bot@chromium.org | 9529441 | 2013-09-26 15:28:40 +0000 | [diff] [blame] | 62 | GrPixelConfig config = mask_format_to_pixel_config(format); |
commit-bot@chromium.org | 3fddf0e | 2013-09-26 12:57:19 +0000 | [diff] [blame] | 63 | if (NULL == fAtlasMgr[format]) { |
commit-bot@chromium.org | 9529441 | 2013-09-26 15:28:40 +0000 | [diff] [blame] | 64 | fAtlasMgr[format] = SkNEW_ARGS(GrAtlasMgr, (fGpu, config)); |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 65 | } |
tomhudson@google.com | c377baf | 2012-07-09 20:17:56 +0000 | [diff] [blame] | 66 | GrTextStrike* strike = SkNEW_ARGS(GrTextStrike, |
commit-bot@chromium.org | 9529441 | 2013-09-26 15:28:40 +0000 | [diff] [blame] | 67 | (this, scaler->getKey(), format, fAtlasMgr[format])); |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 68 | fCache.insert(key, strike); |
| 69 | |
| 70 | if (fHead) { |
| 71 | fHead->fPrev = strike; |
| 72 | } else { |
tfarina@chromium.org | f6de475 | 2013-08-17 00:02:59 +0000 | [diff] [blame] | 73 | SkASSERT(NULL == fTail); |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 74 | fTail = strike; |
| 75 | } |
| 76 | strike->fPrev = NULL; |
| 77 | strike->fNext = fHead; |
| 78 | fHead = strike; |
| 79 | |
| 80 | return strike; |
| 81 | } |
| 82 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 83 | void GrFontCache::freeAll() { |
| 84 | fCache.deleteAll(); |
commit-bot@chromium.org | 3fddf0e | 2013-09-26 12:57:19 +0000 | [diff] [blame] | 85 | for (int i = 0; i < kMaskFormatCount; ++i) { |
| 86 | delete fAtlasMgr[i]; |
| 87 | fAtlasMgr[i] = NULL; |
| 88 | } |
bsalomon@google.com | 8fe7247 | 2011-03-30 21:26:44 +0000 | [diff] [blame] | 89 | fHead = NULL; |
| 90 | fTail = NULL; |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 91 | } |
| 92 | |
| 93 | void GrFontCache::purgeExceptFor(GrTextStrike* preserveStrike) { |
jvanverth@google.com | bbe55fd | 2013-09-16 20:28:37 +0000 | [diff] [blame] | 94 | SkASSERT(NULL != preserveStrike); |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 95 | GrTextStrike* strike = fTail; |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 96 | bool purge = true; |
jvanverth@google.com | bbe55fd | 2013-09-16 20:28:37 +0000 | [diff] [blame] | 97 | GrMaskFormat maskFormat = preserveStrike->fMaskFormat; |
bsalomon@google.com | 7359eae | 2011-06-21 21:18:25 +0000 | [diff] [blame] | 98 | while (strike) { |
jvanverth@google.com | bbe55fd | 2013-09-16 20:28:37 +0000 | [diff] [blame] | 99 | if (strike == preserveStrike || maskFormat != strike->fMaskFormat) { |
bsalomon@google.com | 7359eae | 2011-06-21 21:18:25 +0000 | [diff] [blame] | 100 | strike = strike->fPrev; |
| 101 | continue; |
| 102 | } |
| 103 | GrTextStrike* strikeToPurge = strike; |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 104 | strike = strikeToPurge->fPrev; |
| 105 | if (purge) { |
| 106 | // keep purging if we won't free up any atlases with this strike. |
commit-bot@chromium.org | 7d330eb | 2013-09-27 19:39:38 +0000 | [diff] [blame] | 107 | purge = strikeToPurge->fAtlas.isEmpty(); |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 108 | int index = fCache.slowFindIndex(strikeToPurge); |
tfarina@chromium.org | f6de475 | 2013-08-17 00:02:59 +0000 | [diff] [blame] | 109 | SkASSERT(index >= 0); |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 110 | fCache.removeAt(index, strikeToPurge->fFontScalerKey->getHash()); |
| 111 | this->detachStrikeFromList(strikeToPurge); |
| 112 | delete strikeToPurge; |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 113 | } |
| 114 | } |
| 115 | #if FONT_CACHE_STATS |
| 116 | ++g_PurgeCount; |
| 117 | #endif |
| 118 | } |
| 119 | |
commit-bot@chromium.org | 7d330eb | 2013-09-27 19:39:38 +0000 | [diff] [blame] | 120 | void GrFontCache::freePlotExceptFor(GrTextStrike* preserveStrike) { |
jvanverth@google.com | bbe55fd | 2013-09-16 20:28:37 +0000 | [diff] [blame] | 121 | SkASSERT(NULL != preserveStrike); |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 122 | GrTextStrike* strike = fTail; |
jvanverth@google.com | bbe55fd | 2013-09-16 20:28:37 +0000 | [diff] [blame] | 123 | GrMaskFormat maskFormat = preserveStrike->fMaskFormat; |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 124 | while (strike) { |
jvanverth@google.com | bbe55fd | 2013-09-16 20:28:37 +0000 | [diff] [blame] | 125 | if (strike == preserveStrike || maskFormat != strike->fMaskFormat) { |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 126 | strike = strike->fPrev; |
| 127 | continue; |
| 128 | } |
| 129 | GrTextStrike* strikeToPurge = strike; |
| 130 | strike = strikeToPurge->fPrev; |
commit-bot@chromium.org | 7d330eb | 2013-09-27 19:39:38 +0000 | [diff] [blame] | 131 | if (strikeToPurge->removeUnusedPlots()) { |
| 132 | if (strikeToPurge->fAtlas.isEmpty()) { |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 133 | int index = fCache.slowFindIndex(strikeToPurge); |
tfarina@chromium.org | f6de475 | 2013-08-17 00:02:59 +0000 | [diff] [blame] | 134 | SkASSERT(index >= 0); |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 135 | fCache.removeAt(index, strikeToPurge->fFontScalerKey->getHash()); |
| 136 | this->detachStrikeFromList(strikeToPurge); |
| 137 | delete strikeToPurge; |
| 138 | } |
| 139 | break; |
| 140 | } |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 141 | } |
| 142 | } |
| 143 | |
commit-bot@chromium.org | 515dcd3 | 2013-08-28 14:17:03 +0000 | [diff] [blame] | 144 | #ifdef SK_DEBUG |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 145 | void GrFontCache::validate() const { |
| 146 | int count = fCache.count(); |
| 147 | if (0 == count) { |
tfarina@chromium.org | f6de475 | 2013-08-17 00:02:59 +0000 | [diff] [blame] | 148 | SkASSERT(!fHead); |
| 149 | SkASSERT(!fTail); |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 150 | } else if (1 == count) { |
tfarina@chromium.org | f6de475 | 2013-08-17 00:02:59 +0000 | [diff] [blame] | 151 | SkASSERT(fHead == fTail); |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 152 | } else { |
tfarina@chromium.org | f6de475 | 2013-08-17 00:02:59 +0000 | [diff] [blame] | 153 | SkASSERT(fHead != fTail); |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 154 | } |
| 155 | |
| 156 | int count2 = 0; |
| 157 | const GrTextStrike* strike = fHead; |
| 158 | while (strike) { |
| 159 | count2 += 1; |
| 160 | strike = strike->fNext; |
| 161 | } |
tfarina@chromium.org | f6de475 | 2013-08-17 00:02:59 +0000 | [diff] [blame] | 162 | SkASSERT(count == count2); |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 163 | |
| 164 | count2 = 0; |
| 165 | strike = fTail; |
| 166 | while (strike) { |
| 167 | count2 += 1; |
| 168 | strike = strike->fPrev; |
| 169 | } |
tfarina@chromium.org | f6de475 | 2013-08-17 00:02:59 +0000 | [diff] [blame] | 170 | SkASSERT(count == count2); |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 171 | } |
| 172 | #endif |
| 173 | |
commit-bot@chromium.org | 03e3e89 | 2013-10-02 18:19:17 +0000 | [diff] [blame] | 174 | #ifdef SK_DEVELOPER |
| 175 | void GrFontCache::dump() const { |
| 176 | static int gDumpCount = 0; |
| 177 | for (int i = 0; i < kMaskFormatCount; ++i) { |
| 178 | if (NULL != fAtlasMgr[i]) { |
| 179 | GrTexture* texture = fAtlasMgr[i]->getTexture(); |
| 180 | if (NULL != texture) { |
| 181 | SkString filename; |
| 182 | filename.printf("fontcache_%d%d.png", gDumpCount, i); |
| 183 | texture->savePixels(filename.c_str()); |
| 184 | } |
| 185 | } |
| 186 | } |
| 187 | ++gDumpCount; |
| 188 | } |
| 189 | #endif |
| 190 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 191 | /////////////////////////////////////////////////////////////////////////////// |
| 192 | |
commit-bot@chromium.org | 515dcd3 | 2013-08-28 14:17:03 +0000 | [diff] [blame] | 193 | #ifdef SK_DEBUG |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 194 | static int gCounter; |
| 195 | #endif |
| 196 | |
| 197 | /* |
| 198 | The text strike is specific to a given font/style/matrix setup, which is |
| 199 | represented by the GrHostFontScaler object we are given in getGlyph(). |
| 200 | |
| 201 | We map a 32bit glyphID to a GrGlyph record, which in turn points to a |
| 202 | atlas and a position within that texture. |
| 203 | */ |
| 204 | |
| 205 | GrTextStrike::GrTextStrike(GrFontCache* cache, const GrKey* key, |
reed@google.com | 98539c6 | 2011-03-15 15:40:16 +0000 | [diff] [blame] | 206 | GrMaskFormat format, |
commit-bot@chromium.org | 7d330eb | 2013-09-27 19:39:38 +0000 | [diff] [blame] | 207 | GrAtlasMgr* atlasMgr) : fPool(64), fAtlas(atlasMgr) { |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 208 | fFontScalerKey = key; |
| 209 | fFontScalerKey->ref(); |
| 210 | |
| 211 | fFontCache = cache; // no need to ref, it won't go away before we do |
| 212 | fAtlasMgr = atlasMgr; // no need to ref, it won't go away before we do |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 213 | |
reed@google.com | 98539c6 | 2011-03-15 15:40:16 +0000 | [diff] [blame] | 214 | fMaskFormat = format; |
| 215 | |
commit-bot@chromium.org | 515dcd3 | 2013-08-28 14:17:03 +0000 | [diff] [blame] | 216 | #ifdef SK_DEBUG |
reed@google.com | 3ef80cf | 2011-07-05 19:09:47 +0000 | [diff] [blame] | 217 | // GrPrintf(" GrTextStrike %p %d\n", this, gCounter); |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 218 | gCounter += 1; |
| 219 | #endif |
| 220 | } |
| 221 | |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 222 | // these signatures are needed because they're used with |
| 223 | // SkTDArray::visitAll() (see destructor & removeUnusedAtlases()) |
| 224 | static void free_glyph(GrGlyph*& glyph) { glyph->free(); } |
| 225 | |
| 226 | static void invalidate_glyph(GrGlyph*& glyph) { |
commit-bot@chromium.org | 7d330eb | 2013-09-27 19:39:38 +0000 | [diff] [blame] | 227 | if (glyph->fPlot && glyph->fPlot->drawToken().isIssued()) { |
| 228 | glyph->fPlot = NULL; |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 229 | } |
| 230 | } |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 231 | |
| 232 | GrTextStrike::~GrTextStrike() { |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 233 | fFontScalerKey->unref(); |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 234 | fCache.getArray().visitAll(free_glyph); |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 235 | |
commit-bot@chromium.org | 515dcd3 | 2013-08-28 14:17:03 +0000 | [diff] [blame] | 236 | #ifdef SK_DEBUG |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 237 | gCounter -= 1; |
reed@google.com | 3ef80cf | 2011-07-05 19:09:47 +0000 | [diff] [blame] | 238 | // GrPrintf("~GrTextStrike %p %d\n", this, gCounter); |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 239 | #endif |
| 240 | } |
| 241 | |
| 242 | GrGlyph* GrTextStrike::generateGlyph(GrGlyph::PackedID packed, |
| 243 | GrFontScaler* scaler) { |
commit-bot@chromium.org | fd03d4a | 2013-07-17 21:39:42 +0000 | [diff] [blame] | 244 | SkIRect bounds; |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 245 | if (!scaler->getPackedGlyphBounds(packed, &bounds)) { |
| 246 | return NULL; |
| 247 | } |
| 248 | |
| 249 | GrGlyph* glyph = fPool.alloc(); |
| 250 | glyph->init(packed, bounds); |
| 251 | fCache.insert(packed, glyph); |
| 252 | return glyph; |
| 253 | } |
| 254 | |
commit-bot@chromium.org | 7d330eb | 2013-09-27 19:39:38 +0000 | [diff] [blame] | 255 | bool GrTextStrike::removeUnusedPlots() { |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 256 | fCache.getArray().visitAll(invalidate_glyph); |
commit-bot@chromium.org | 7d330eb | 2013-09-27 19:39:38 +0000 | [diff] [blame] | 257 | return fAtlasMgr->removeUnusedPlots(&fAtlas); |
commit-bot@chromium.org | 67ed64e | 2013-08-05 19:42:56 +0000 | [diff] [blame] | 258 | } |
| 259 | |
commit-bot@chromium.org | 49e8083 | 2013-10-07 18:20:27 +0000 | [diff] [blame] | 260 | bool GrTextStrike::getGlyphAtlas(GrGlyph* glyph, GrFontScaler* scaler) { |
reed@google.com | 0ebe81a | 2011-04-04 20:06:59 +0000 | [diff] [blame] | 261 | #if 0 // testing hack to force us to flush our cache often |
| 262 | static int gCounter; |
| 263 | if ((++gCounter % 10) == 0) return false; |
| 264 | #endif |
| 265 | |
tfarina@chromium.org | f6de475 | 2013-08-17 00:02:59 +0000 | [diff] [blame] | 266 | SkASSERT(glyph); |
| 267 | SkASSERT(scaler); |
| 268 | SkASSERT(fCache.contains(glyph)); |
commit-bot@chromium.org | 49e8083 | 2013-10-07 18:20:27 +0000 | [diff] [blame] | 269 | SkASSERT(NULL == glyph->fPlot); |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 270 | |
commit-bot@chromium.org | a4de8c2 | 2013-09-09 13:38:37 +0000 | [diff] [blame] | 271 | SkAutoRef ar(scaler); |
reed@google.com | 98539c6 | 2011-03-15 15:40:16 +0000 | [diff] [blame] | 272 | |
| 273 | int bytesPerPixel = GrMaskFormatBytesPerPixel(fMaskFormat); |
| 274 | size_t size = glyph->fBounds.area() * bytesPerPixel; |
bsalomon@google.com | 3582bf9 | 2011-06-30 21:32:31 +0000 | [diff] [blame] | 275 | SkAutoSMalloc<1024> storage(size); |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 276 | if (!scaler->getPackedGlyphImage(glyph->fPackedID, glyph->width(), |
reed@google.com | 98539c6 | 2011-03-15 15:40:16 +0000 | [diff] [blame] | 277 | glyph->height(), |
| 278 | glyph->width() * bytesPerPixel, |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 279 | storage.get())) { |
| 280 | return false; |
| 281 | } |
| 282 | |
commit-bot@chromium.org | 7d330eb | 2013-09-27 19:39:38 +0000 | [diff] [blame] | 283 | GrPlot* plot = fAtlasMgr->addToAtlas(&fAtlas, glyph->width(), |
| 284 | glyph->height(), storage.get(), |
| 285 | &glyph->fAtlasLocation); |
| 286 | if (NULL == plot) { |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 287 | return false; |
| 288 | } |
| 289 | |
commit-bot@chromium.org | 7d330eb | 2013-09-27 19:39:38 +0000 | [diff] [blame] | 290 | glyph->fPlot = plot; |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 291 | return true; |
| 292 | } |